Add TO Golang route for path without .json

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/e23a6171
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/e23a6171
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/e23a6171

Branch: refs/heads/master
Commit: e23a6171f661e586569affd009a418dadd01e8f7
Parents: 9d24e39
Author: Robert Butts <robert.o.bu...@gmail.com>
Authored: Wed Jul 26 17:51:16 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Thu Aug 10 09:46:03 2017 -0600

----------------------------------------------------------------------
 traffic_ops/traffic_ops_golang/routes.go | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/e23a6171/traffic_ops/traffic_ops_golang/routes.go
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/routes.go 
b/traffic_ops/traffic_ops_golang/routes.go
index 8ad994e..a9eaf08 100644
--- a/traffic_ops/traffic_ops_golang/routes.go
+++ b/traffic_ops/traffic_ops_golang/routes.go
@@ -59,6 +59,7 @@ func GetRoutes(d ServerData) (map[string]RegexHandlerFunc, 
http.Handler, error)
        }
 
        return map[string]RegexHandlerFunc{
+               "api/1.2/cdns/{cdn}/configs/monitoring":      
wrapHeaders(wrapAuth(monitoringHandler(d.DB), d.Insecure, d.TOSecret, 
privLevelStmt, MonitoringPrivLevel)),
                "api/1.2/cdns/{cdn}/configs/monitoring.json": 
wrapHeaders(wrapAuth(monitoringHandler(d.DB), d.Insecure, d.TOSecret, 
privLevelStmt, MonitoringPrivLevel)),
        }, getRootHandler(d), nil
 }

Reply via email to