From 7cf9046dc53dc8dc57d5f51ef058bd57c695d75c Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Tue, 19 May 2015 23:47:39 +0200 Subject: [PATCH] fixing #2021 This tiny commit fixes a routing problem for proxy requests. The router was expecting a url path behind the proxy id, if none was given (read: the service proxied was at the root of a host) then the router would return a 404. With this patch it now propperly uses ProxyDataSourceRequest. --- pkg/api/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/api/api.go b/pkg/api/api.go index 6482beb075c..7f9e17838f7 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -94,6 +94,7 @@ func Register(r *macaron.Macaron) { r.Get("/frontend/settings/", GetFrontendSettings) r.Any("/datasources/proxy/:id/*", reqSignedIn, ProxyDataSourceRequest) + r.Any("/datasources/proxy/:id", reqSignedIn, ProxyDataSourceRequest) // Dashboard r.Group("/dashboards", func() {