mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 23:15:49 +01:00
Add Issues.
This commit is contained in:
@@ -8,6 +8,7 @@ class ScalatraBootstrap extends LifeCycle {
|
||||
context.mount(new SignInController, "/*")
|
||||
context.mount(new UsersController, "/*")
|
||||
context.mount(new WikiController, "/*")
|
||||
context.mount(new IssuesController, "/*")
|
||||
context.mount(new CreateRepositoryController, "/*")
|
||||
context.mount(new RepositoryViewerController, "/*")
|
||||
context.mount(new SettingsController, "/*")
|
||||
|
||||
19
src/main/scala/app/IssuesController.scala
Normal file
19
src/main/scala/app/IssuesController.scala
Normal file
@@ -0,0 +1,19 @@
|
||||
package app
|
||||
|
||||
import service._
|
||||
|
||||
class IssuesController extends IssuesControllerBase
|
||||
with RepositoryService with AccountService
|
||||
|
||||
trait IssuesControllerBase extends ControllerBase { self: RepositoryService =>
|
||||
|
||||
get("/:owner/:repository/issues"){
|
||||
issues.html.issues(getRepository(params("owner"), params("repository"), servletContext).get)
|
||||
}
|
||||
|
||||
get("/:owner/:repository/issues/:id"){
|
||||
issues.html.issue(getRepository(params("owner"), params("repository"), servletContext).get)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user