Skip to content

Commit

Permalink
Fix panic 500 page rendering (#14474)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 26, 2021
1 parent afbddf1 commit 0f726ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routers/routes/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ func NormalRoutes() *web.Route {
for _, middle := range commonMiddlewares() {
r.Use(middle)
}
r.Use(Recovery())

r.Mount("/", WebRoutes())
r.Mount("/api/v1", apiv1.Routes())
Expand All @@ -124,6 +123,8 @@ func WebRoutes() *web.Route {
Domain: setting.SessionConfig.Domain,
}))

r.Use(Recovery())

r.Use(public.Custom(
&public.Options{
SkipLogging: setting.DisableRouterLog,
Expand Down

0 comments on commit 0f726ca

Please sign in to comment.