Add Issues.

This commit is contained in:
shimamoto
2013-06-05 16:26:26 +09:00
parent e7ab61685b
commit 3208792393
6 changed files with 102 additions and 1 deletions

View 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)
}
}