Add the label edit process by mock.

This commit is contained in:
shimamoto
2013-07-02 19:40:33 +09:00
parent c0a2378111
commit cf54ddc1a3
2 changed files with 31 additions and 1 deletions

View File

@@ -109,6 +109,16 @@ trait IssuesControllerBase extends ControllerBase {
redirect("/%s/%s/issues/_data/%d".format(owner, repository, issueId))
}
// TODO Authenticator
ajaxPost("/:owner/:repository/issues/:id/label/:labelId/new"){
"TODO Insert!"
}
// TODO Authenticator
ajaxPost("/:owner/:repository/issues/:id/label/:labelId/delete"){
"TODO Delete!"
}
// TODO requires users only and readable repository checking
post("/:owner/:repository/issue_comments/new", commentForm)( usersOnly { form =>
val owner = params("owner")