routers

package
v0.0.0-...-a3d1081 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilterAdmin = func(ctx *context.Context) {
	sess := ctx.Input.CruSession.Get("Adminname")
	var lowerUrl string = strings.ToLower(ctx.Request.RequestURI)
	if sess == nil && !NoCheckUrl(lowerUrl) {
		ctx.Redirect(302, "/admin/login")
	}
}

Functions

func NoCheckUrl

func NoCheckUrl(lowerUrl string) bool

排除的URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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