burning.moe/cmd/web/middleware.go
Lilian Jónsdóttir 108ba4d8c2 move middleware to its own file
in anticipation of maybe adding more
2024-01-24 23:33:08 -08:00

13 lines
281 B
Go

package main
import (
"net/http"
"github.com/go-chi/chi/v5/middleware"
)
// Middleware is a slice of Middleware (aka func(n http.Handler) http.Handler {})
var Middleware []func(next http.Handler) http.Handler = []func(next http.Handler) http.Handler{
middleware.Recoverer,
}