middleware
import "budget-tracker-api-v2/internal/http/middleware"
Index
- func InjectHeaders(next http.Handler) http.Handler
- func RequireContentTypeJSON(h http.Handler) http.Handler
- func RequireTokenAuthentication(h http.Handler) http.Handler
func InjectHeaders
func InjectHeaders(next http.Handler) http.Handler
InjectHeaders acts as a middleware between routers to inject common response headers
func RequireContentTypeJSON
func RequireContentTypeJSON(h http.Handler) http.Handler
RequireContentTypeJSON enforces JSON content-type from requests
func RequireTokenAuthentication
func RequireTokenAuthentication(h http.Handler) http.Handler
RequireTokenAuthentication enforces authentication token from requests
Generated by gomarkdoc