add get org by name api

This commit is contained in:
Shaofeng Chen
2016-01-12 13:50:56 -08:00
parent a87b5f757d
commit dc427d5a2c
2 changed files with 32 additions and 0 deletions

View File

@ -147,6 +147,11 @@ func Register(r *macaron.Macaron) {
r.Put("/quotas/:target", bind(m.UpdateOrgQuotaCmd{}), wrap(UpdateOrgQuota))
}, reqGrafanaAdmin)
// orgs (admin routes)
r.Group("/orgs/name/:name", func() {
r.Get("/", wrap(GetOrgByName))
}, reqGrafanaAdmin)
// auth api keys
r.Group("/auth/keys", func() {
r.Get("/", wrap(GetApiKeys))