mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 21:17:22 +02:00
Apply ApiAuthenticationFilter to /api/* to cover APIs other than GitHub API
This commit is contained in:
@@ -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, "/*")
|
||||
|
||||
Reference in New Issue
Block a user