mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 03:55:58 +01:00
Add Issues.
This commit is contained in:
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