Documentation
¶
Index ¶
- func CORS() func(next http.Handler) http.Handler
- func CORSWithCredentials(allowedOrigins []string) func(next http.Handler) http.Handler
- func HTTPLogger(next http.Handler) http.Handler
- func IsAuthenticated(authService *auth.Service) func(http.Handler) http.Handler
- func RequireSetup(authService *auth.Service) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSWithCredentials ¶
CORSWithCredentials returns a CORS middleware that allows credentials
func HTTPLogger ¶
HTTPLogger logs HTTP requests using the global zerolog logger
func IsAuthenticated ¶
IsAuthenticated middleware checks if the user is authenticated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.