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:
parent
60a81bb65e
commit
9b2d60fa37
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue