mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-08-16 23:52:59 +02:00
Merge branch 'shyam' into shyam-frontend
This commit is contained in:
@@ -337,7 +337,13 @@ func main() {
|
||||
rw.Header().Add("Content-Type", "text/html; charset=utf-8")
|
||||
web.RenderTemplate(rw, "privacy.tmpl", &web.Page{Title: "Privacy", Build: buildInfo})
|
||||
})
|
||||
// r.NotFoundHandler
|
||||
|
||||
r.NotFoundHandler = http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
|
||||
rw.WriteHeader(http.StatusNotFound)
|
||||
rw.Header().Add("Content-Type", "text/html; charset=utf-8")
|
||||
web.RenderTemplate(rw, "404.tmpl", &web.Page{Title: "Page not found", Build: buildInfo})
|
||||
})
|
||||
-
|
||||
|
||||
secured := r.PathPrefix("/").Subrouter()
|
||||
|
||||
|
Reference in New Issue
Block a user