mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
001589cd6d
Adds ability to record metrics and gather them for Prometheus.
13 lines
244 B
Go
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)
|
|
}
|
|
}
|