middleware

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AdminURIPrefix = "/api/admin"

AdminURIPrefix is the uri to intercept by auth middleware

Variables

This section is empty.

Functions

func AdminAuth

func AdminAuth(next http.Handler) http.Handler

AdminAuth intercepts request and requires token for admin endpoints

func Recover added in v0.1.2

func Recover(next http.Handler) http.Handler

Recover recovers from panic

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL