mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-16 00:00:08 +01:00
16 lines
327 B
Go
16 lines
327 B
Go
package endpoints
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/alice-lg/birdwatcher/bird"
|
|
"github.com/julienschmidt/httprouter"
|
|
)
|
|
|
|
func Protocols(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {
|
|
return bird.Protocols()
|
|
}
|
|
|
|
func Bgp(r *http.Request, ps httprouter.Params) (bird.Parsed, bool) {
|
|
return bird.ProtocolsBgp()
|
|
}
|