Refactoring some api handlers to use the new Response return object

This commit is contained in:
Torkel Ödegaard
2015-05-18 21:23:40 +02:00
parent fbc6bb2112
commit f81bde5643
3 changed files with 17 additions and 19 deletions

View File

@ -84,9 +84,9 @@ func Register(r *macaron.Macaron) {
// auth api keys
r.Group("/auth/keys", func() {
r.Get("/", GetApiKeys)
r.Post("/", bind(m.AddApiKeyCommand{}), AddApiKey)
r.Delete("/:id", DeleteApiKey)
r.Get("/", wrap(GetApiKeys))
r.Post("/", bind(m.AddApiKeyCommand{}), wrap(AddApiKey))
r.Delete("/:id", wrap(DeleteApiKey))
}, reqAccountAdmin)
// Data sources