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

included routes noexport endpoint

This commit is contained in:
Matthias Hannig 2017-04-07 11:14:03 +02:00
parent fa6ca4e91c
commit 1ec76f2772

View file

@ -62,6 +62,9 @@ func makeRouter(config endpoints.ServerConfig) *httprouter.Router {
if isModuleEnabled("routes_filtered", whitelist) {
r.GET("/routes/filtered/:protocol", endpoints.Endpoint(endpoints.RoutesFiltered))
}
if isModuleEnabled("routes_noexport", whitelist) {
r.GET("/routes/noexport/:protocol", endpoints.Endpoint(endpoints.RoutesNoexport))
}
if isModuleEnabled("routes_prefixed", whitelist) {
r.GET("/routes/prefix", endpoints.Endpoint(endpoints.RoutesPrefixed))
}