handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ALLOW_URLS = []string{
	"/api/login",

	"/",
	".*\\.html",
	".*\\.js",
	".*\\.css",
	".*\\.svg",
	".*\\.ico",
	".*\\.gif",
}

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func InArray

func InArray(url string, urls []string) bool

func Recover

func Recover(c *gin.Context)

golang(gin)的全局统一异常处理,并统一返回json https://blog.csdn.net/u014155085/article/details/106733391

Types

This section is empty.

Jump to

Keyboard shortcuts

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