Worked on account update, moved collaborats to its own api url and files

This commit is contained in:
Torkel Ödegaard
2015-01-15 19:14:47 +01:00
parent 804bff55ec
commit 04bbdbad12
8 changed files with 182 additions and 86 deletions

View File

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