Documentation ¶
Overview ¶
Package Middleware handles an incoming request Users can create new Middleware functions here or create a new file beneath the middleware directory
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiAuthMiddleware ¶
func ApiAuthMiddleware(f func(http.ResponseWriter, *http.Request, httprouter.Params, models.User)) func(http.ResponseWriter, *http.Request, httprouter.Params)
Users should be redirected to log in when they are not authenticated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.