You've already forked Go-Template
Please no changes this time.
This commit is contained in:
10
http_handlers/errors/notfound.go
Normal file
10
http_handlers/errors/notfound.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package errors
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func NewNotFoundError(c echo.Context) error {
|
||||
return c.JSON(http.StatusNotFound, map[string]string{"error": "Not Found"})
|
||||
}
|
||||
Reference in New Issue
Block a user