# Functions
No description provided by the author
instruct the browser and cloudflare to cache for this amount of time.
override an existing max-age header (e.g.
cache indefinitely (until a cache purge).
cache indefinitely in cloudflare (until this server restarts and purges cloudflare), and for the defined amount of time in the browser.
No description provided by the author
GetUser returns the User object attached to the context, presumably by the RequireAuth middleware.
No description provided by the author
do not cache anywhere.
RegexRewrite is based on echo's Rewrite but expects a regex rather than trying to create one from a glob.
Redirect trailing index.html's.
RequireRoles returns a middleware that requires the user to have at least one of the provided role IDs.
StripExt redirects any request ending with a provided extension to one without it, using the supplied http status code.
# Variables
No description provided by the author
No description provided by the author
RequireAuth requires that the Authorization header be set, correctly formatted, and the token to be valid For invalid token, it sends “401 - Unauthorized” response.