middlewares

package
v0.0.0-...-d4a52ae Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware : This enables us interact with the React Frontend

func TokenAuthMiddleware

func TokenAuthMiddleware() gin.HandlerFunc

TokenAuthMiddleware : will check for the validity of the authentication token provided. They will ensure that the auth rules are not broken.

Types

This section is empty.

Jump to

Keyboard shortcuts

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