Optimize http status (#75)

This commit is contained in:
Wenbo Han
2023-03-13 23:47:19 +08:00
committed by GitHub
parent 7e2e5b01d6
commit ed5a0625a7

View File

@@ -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",
})
})