Separate API controller to improve routing performance

This commit is contained in:
Naoki Takezoe
2016-03-05 19:47:27 +09:00
parent 1211bfc7be
commit f194a08cfe
13 changed files with 591 additions and 520 deletions

View File

@@ -27,9 +27,10 @@ class ScalatraBootstrap extends LifeCycle {
}
context.mount(new IndexController, "/")
context.mount(new ApiController, "/api/v3")
context.mount(new FileUploadController, "/upload")
context.mount(new SystemSettingsController, "/admin")
context.mount(new DashboardController, "/*")
context.mount(new SystemSettingsController, "/*")
context.mount(new AccountController, "/*")
context.mount(new RepositoryViewerController, "/*")
context.mount(new WikiController, "/*")