Working on account collaborators

This commit is contained in:
Torkel Ödegaard
2015-01-14 16:12:37 +01:00
parent 50a5355de0
commit 6f63d63ee0
6 changed files with 71 additions and 45 deletions

View File

@ -33,7 +33,8 @@ func Register(m *macaron.Macaron) {
// account
m.Group("/account", func() {
m.Get("/", GetAccount)
m.Post("/collaborators/add", AddCollaborator)
m.Put("/collaborators", AddCollaborator)
m.Delete("/collaborators/:id", RemoveCollaborator)
m.Post("/using/:id", SetUsingAccount)
m.Get("/others", GetOtherAccounts)
})