Worked on account update view

This commit is contained in:
Torkel Ödegaard
2015-01-26 15:42:22 +01:00
parent 9a641ee7c0
commit 5ba2423626
5 changed files with 58 additions and 3 deletions

View File

@@ -49,7 +49,9 @@ func Register(r *macaron.Macaron) {
// account
r.Group("/account", func() {
r.Get("/", GetAccount)
r.Post("/", bind(m.CreateAccountCommand{}), CreateAccount)
r.Put("/", bind(m.UpdateAccountCommand{}), UpdateAccount)
r.Post("/users", bind(m.AddAccountUserCommand{}), AddAccountUser)
r.Get("/users", GetAccountUsers)
r.Delete("/users/:id", RemoveAccountUser)