1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00
birdwatcher/endpoints/status.go
Patrick Seeburger 116f03fed4 Add support for uncached queries
The cache is still updated with new information on every request.
2019-03-20 14:55:11 +01:00

12 lines
243 B
Go

package endpoints
import (
"net/http"
"github.com/alice-lg/birdwatcher/bird"
"github.com/julienschmidt/httprouter"
)
func Status(r *http.Request, ps httprouter.Params, useCache bool) (bird.Parsed, bool) {
return bird.Status(useCache)
}