From 8afd56575c0c69d9294fc1d25ae05ca1ca8b496f Mon Sep 17 00:00:00 2001 From: utkarshcmu Date: Thu, 10 Mar 2016 00:48:38 -0800 Subject: [PATCH] Moved api in correct group --- pkg/api/api.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 0915bbd678d..4ef580a368e 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -171,10 +171,7 @@ func Register(r *macaron.Macaron) { r.Put("/:id", bind(m.UpdateDataSourceCommand{}), UpdateDataSource) r.Delete("/:id", DeleteDataSource) r.Get("/:id", wrap(GetDataSourceById)) - }, reqOrgAdmin) - - r.Group("/datasources/name/:name", func() { - r.Get("/", wrap(GetDataSourceByName)) + r.Get("/name/:name", wrap(GetDataSourceByName)) }, reqOrgAdmin) r.Get("/frontend/settings/", GetFrontendSettings)