mirror of
https://github.com/goravel/goravel.git
synced 2025-09-26 12:41:13 +08:00
Optimize http status (#75)
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func Web() {
|
||||
facades.Route.Get("/", func(ctx http.Context) {
|
||||
ctx.Response().Json(200, http.Json{
|
||||
ctx.Response().Json(http.StatusOK, http.Json{
|
||||
"Hello": "Goravel",
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user