Apply ApiAuthenticationFilter to /api/* to cover APIs other than GitHub API

This commit is contained in:
Naoki Takezoe
2018-04-16 19:41:11 +09:00
parent 6e0deb6a6c
commit 3abe398244

View File

@@ -28,7 +28,7 @@ class ScalatraBootstrap extends LifeCycle with SystemSettingsService {
context.addFilter("apiAuthenticationFilter", new ApiAuthenticationFilter)
context
.getFilterRegistration("apiAuthenticationFilter")
.addMappingForUrlPatterns(EnumSet.allOf(classOf[DispatcherType]), true, "/api/v3/*")
.addMappingForUrlPatterns(EnumSet.allOf(classOf[DispatcherType]), true, "/api/*")
// Register controllers
context.mount(new PreProcessController, "/*")