|
|
@ -101,7 +101,6 @@ func NormalRoutes() *web.Route { |
|
|
|
for _, middle := range commonMiddlewares() { |
|
|
|
for _, middle := range commonMiddlewares() { |
|
|
|
r.Use(middle) |
|
|
|
r.Use(middle) |
|
|
|
} |
|
|
|
} |
|
|
|
r.Use(Recovery()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
r.Mount("/", WebRoutes()) |
|
|
|
r.Mount("/", WebRoutes()) |
|
|
|
r.Mount("/api/v1", apiv1.Routes()) |
|
|
|
r.Mount("/api/v1", apiv1.Routes()) |
|
|
@ -124,6 +123,8 @@ func WebRoutes() *web.Route { |
|
|
|
Domain: setting.SessionConfig.Domain, |
|
|
|
Domain: setting.SessionConfig.Domain, |
|
|
|
})) |
|
|
|
})) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
r.Use(Recovery()) |
|
|
|
|
|
|
|
|
|
|
|
r.Use(public.Custom( |
|
|
|
r.Use(public.Custom( |
|
|
|
&public.Options{ |
|
|
|
&public.Options{ |
|
|
|
SkipLogging: setting.DisableRouterLog, |
|
|
|
SkipLogging: setting.DisableRouterLog, |
|
|
|