This commit is contained in:
Naoki Takezoe
2014-07-13 23:20:16 +09:00
parent 1f56e1360d
commit 652a68c5b1
4 changed files with 14 additions and 15 deletions

View File

@@ -88,8 +88,6 @@ trait IndexControllerBase extends ControllerBase {
/**
* JSON API for collaborator completion.
*
* TODO Move to other controller?
*/
get("/_user/proposals")(usersOnly {
contentType = formats("json")
@@ -98,5 +96,11 @@ trait IndexControllerBase extends ControllerBase {
)
})
/**
* JSON APU for checking user existence.
*/
post("/_user/existence")(usersOnly {
getAccountByUserName(params("userName")).isDefined
})
}