Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRoutes ¶
HandleRoutes applies routes to a mux router. OPTIONS requests are handled, and the Access-Control-Allowed-Methods header is set. Middlewares are applied from the inside out (ex: cors, cache, auth would apply auth, then cors, then cache, then the handler).
Types ¶
type Middleware ¶
Middleware functions wrap an http handler.
Click to show internal directories.
Click to hide internal directories.