commit
d6fed41e8d
@ -39,7 +39,7 @@ type apiEndpoint func(
|
|||||||
httprouter.Params,
|
httprouter.Params,
|
||||||
) (response, error)
|
) (response, error)
|
||||||
|
|
||||||
// Wrap handler for access control, throtteling and compression
|
// Wrap handler for access control, throttling and compression
|
||||||
func endpoint(wrapped apiEndpoint) httprouter.Handle {
|
func endpoint(wrapped apiEndpoint) httprouter.Handle {
|
||||||
return func(res http.ResponseWriter,
|
return func(res http.ResponseWriter,
|
||||||
req *http.Request,
|
req *http.Request,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user