middleware

package
v0.0.0-...-b708652 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func PublicMiddleware

func PublicMiddleware(next http.Handler) http.Handler

func RedirectMiddleware

func RedirectMiddleware(next http.Handler) http.Handler

If user has a valid token, once they request for /login page they should be redirected to /edit

Types

This section is empty.

Jump to

Keyboard shortcuts

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