1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-23 00:00:07 +01:00
birdwatcher/endpoints/protocols.go

17 lines
327 B
Go
Raw Normal View History

2016-11-11 14:14:38 +01:00
package endpoints
import (
"net/http"
"github.com/alice-lg/birdwatcher/bird"
2016-11-11 14:14:38 +01:00
"github.com/julienschmidt/httprouter"
)
func Protocols(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {
2016-11-11 14:14:38 +01:00
return bird.Protocols()
}
func Bgp(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {
2016-11-11 14:14:38 +01:00
return bird.ProtocolsBgp()
}