Discover Packages
github.com/josephspurrier/gomithrilapp
src
app
api
middleware
jwt
package
Version:
v0.0.0-...-f0f63f4
Opens a new window with list of versions in this module.
Published: Aug 5, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types IsWhitelisted(method, path, arr) type Config New(whitelist, webtoken, ctx) (c) Handler(next)
Documentation
¶
IsWhitelisted returns true if the request is in the whitelist. If only an
asterisk is found in the whitelist, allow all routes. If an asterisk is
found in the page string, then whitelist only the matching paths.
Config contains the dependencies for the handler.
New returns a new loq request middleware.
Handler will require a JWT.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.