feat(admin): Deleting org from orgs list now works, will permanently delete dashboards, data sources, etc, closes #2457

This commit is contained in:
Torkel Ödegaard
2015-08-12 08:59:39 +02:00
parent 7370af9a82
commit 8fcaa4997d
5 changed files with 12 additions and 1 deletions
+1
View File
@@ -113,6 +113,7 @@ func Register(r *macaron.Macaron) {
r.Group("/orgs/:orgId", func() {
r.Get("/", wrap(GetOrgById))
r.Put("/", bind(m.UpdateOrgCommand{}), wrap(UpdateOrg))
r.Delete("/", wrap(DeleteOrgById))
r.Get("/users", wrap(GetOrgUsers))
r.Post("/users", bind(m.AddOrgUserCommand{}), wrap(AddOrgUser))
r.Patch("/users/:userId", bind(m.UpdateOrgUserCommand{}), wrap(UpdateOrgUser))