Documentation
¶
Overview ¶
Package middleware provides HTTP middleware for the outtake API.
Index ¶
Constants ¶
View Source
const SessionKeyToken = "plex_token"
SessionKeyToken is the session key used to store the Plex authentication token.
Variables ¶
This section is empty.
Functions ¶
func AuthGuard ¶
AuthGuard provides authentication middleware that checks if the user has a valid Plex token in their session before allowing access to protected routes.
func BindCSRFToken ¶
BindCSRFToken copies the Fiber CSRF token onto the request context for templates.
Returns:
- Middleware that stores the token and continues the chain.
func RequestLogger ¶
RequestLogger provides request logging middleware.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.