diff options
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 593551d770..b78c55269e 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -553,6 +553,11 @@ func Routes() *web.Route { })) } m.Use(context.APIContexter()) + + if setting.EnableAccessLog { + m.Use(context.AccessLogger()) + } + m.Use(context.ToggleAPI(&context.ToggleOptions{ SignInRequired: setting.Service.RequireSignInView, })) |