1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

fixed path must begin with '/' in path 'routes/filtered/:protocol'

This commit is contained in:
Matthias Hannig 2016-12-09 11:49:45 +01:00
parent 60a81bb65e
commit 9b2d60fa37

View file

@ -56,10 +56,10 @@ func makeRouter(config endpoints.ServerConfig) *httprouter.Router {
r.GET("/routes/count/table/:table", endpoints.Endpoint(endpoints.TableCount))
}
if isModuleEnabled("routes_filtered", whitelist) {
r.GET("routes/filtered/:protocol", endpoints.Endpoint(endpoints.RoutesFiltered))
r.GET("/routes/filtered/:protocol", endpoints.Endpoint(endpoints.RoutesFiltered))
}
if isModuleEnabled("routes_prefixed", whitelist) {
r.GET("routes/prefix/:prefix", endpoints.Endpoint(endpoints.RoutesPrefixed))
r.GET("/routes/prefix/:prefix", endpoints.Endpoint(endpoints.RoutesPrefixed))
}
if isModuleEnabled("route_net", whitelist) {
r.GET("/route/net/:net", endpoints.Endpoint(endpoints.RouteNet))