Matthew Stobbs
4c132c4abf
- switched to go 1.22 net/http ServeMux for routing - seems to be working really well
23 lines
808 B
Go
23 lines
808 B
Go
package middleware
|
|
|
|
import "github.com/go-chi/chi/v5/middleware"
|
|
|
|
// These middlewares are cloned from chi/middleware
|
|
var (
|
|
AllowContentEncoding = middleware.AllowContentEncoding
|
|
AllowContentType = middleware.AllowContentType
|
|
BasicAuth = middleware.BasicAuth
|
|
Compress = middleware.Compress
|
|
Heartbeat = middleware.Heartbeat
|
|
//NoCache = middleware.NoCache
|
|
Profiler = middleware.Profiler
|
|
RealIP = middleware.RealIP
|
|
Recoverer = middleware.Recoverer
|
|
RequestID = middleware.RequestID
|
|
SetHeader = middleware.SetHeader
|
|
Sunset = middleware.Sunset
|
|
Throttle = middleware.Throttle
|
|
Timeout = middleware.Timeout
|
|
URLFormat = middleware.URLFormat
|
|
)
|