2024-03-24 04:05:06 +00:00
|
|
|
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
|
2024-03-24 05:59:56 +00:00
|
|
|
//NoCache = middleware.NoCache
|
2024-03-24 04:05:06 +00:00
|
|
|
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
|
|
|
|
)
|