mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-10 01:20:58 +01:00
Changed root route to use BlankHandler instead of 404 handler
This commit is contained in:
parent
5888e5896f
commit
f00af9ee26
@ -477,6 +477,7 @@ func (h *Headscale) createRouter(grpcMux *grpcRuntime.ServeMux) *mux.Router {
|
|||||||
apiRouter.Use(h.httpAuthenticationMiddleware)
|
apiRouter.Use(h.httpAuthenticationMiddleware)
|
||||||
apiRouter.PathPrefix("/v1/").HandlerFunc(grpcMux.ServeHTTP)
|
apiRouter.PathPrefix("/v1/").HandlerFunc(grpcMux.ServeHTTP)
|
||||||
router.HandleFunc("/favicon.ico", FaviconHandler)
|
router.HandleFunc("/favicon.ico", FaviconHandler)
|
||||||
|
router.PathPrefix("/").HandlerFunc(BlankHandler)
|
||||||
|
|
||||||
return router
|
return router
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user