Enable strict slash to avoid 404 when using trailing slash
This commit is contained in:
parent
dd3078dc69
commit
debbf5a5b0
1 changed files with 1 additions and 0 deletions
1
ui/ui.go
1
ui/ui.go
|
@ -23,6 +23,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool, feedHa
|
|||
uiRouter := router.NewRoute().Subrouter()
|
||||
uiRouter.Use(middleware.handleUserSession)
|
||||
uiRouter.Use(middleware.handleAppSession)
|
||||
uiRouter.StrictSlash(true)
|
||||
|
||||
// Static assets.
|
||||
uiRouter.HandleFunc("/stylesheets/{name}.css", handler.showStylesheet).Name("stylesheet").Methods(http.MethodGet)
|
||||
|
|
Loading…
Reference in a new issue