We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e05c0 commit 6ba1db9Copy full SHA for 6ba1db9
server.go
@@ -5,6 +5,7 @@ import (
5
"github.com/labstack/echo/v4/middleware"
6
"html/template"
7
"io"
8
+ "net/http"
9
)
10
11
type Template struct {
@@ -47,6 +48,11 @@ func startWebServer() {
47
48
}
49
50
51
+ // Render 404 page
52
+ echo.NotFoundHandler = func(c echo.Context) error {
53
+ return c.Render(http.StatusNotFound, "404.html", "")
54
+ }
55
+
56
// Serve the routes
57
webRouter(e)
58
0 commit comments