(refs #8)Merge user name proposal API to IndexController.

This commit is contained in:
takezoe
2013-07-23 15:37:59 +09:00
parent e61bde1415
commit c86bf1d68b
5 changed files with 33 additions and 21 deletions

View File

@@ -57,14 +57,14 @@ trait RepositorySettingsControllerBase extends ControllerBase with FlashMapSuppo
settings.html.collaborators(getCollaborators(repository.owner, repository.name), repository)
})
/**
* JSON API for collaborator completion.
*/
// TODO Merge with UserManagementController
get("/:owner/:repository/settings/collaborators/proposals")(usersOnly {
contentType = formats("json")
org.json4s.jackson.Serialization.write(Map("options" -> getAllUsers.filter(!_.isGroupAccount).map(_.userName).toArray))
})
// /**
// * JSON API for collaborator completion.
// */
// // TODO Merge with UserManagementController
// get("/:owner/:repository/settings/collaborators/proposals")(usersOnly {
// contentType = formats("json")
// org.json4s.jackson.Serialization.write(Map("options" -> getAllUsers.filter(!_.isGroupAccount).map(_.userName).toArray))
// })
/**
* Add the collaborator.