authelia/internal/handlers/handler_status.go
James Elliott 001589cd6d
feat(metrics): implement prometheus metrics (#3234)
Adds ability to record metrics and gather them for Prometheus.
2022-06-14 17:20:13 +10:00

13 lines
244 B
Go

package handlers
import (
"github.com/valyala/fasthttp"
)
// Status handles basic status responses.
func Status(statusCode int) fasthttp.RequestHandler {
return func(ctx *fasthttp.RequestCtx) {
SetStatusCodeResponse(ctx, statusCode)
}
}