admin

package
v0.0.0-...-4924b15 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = router.RoutePrefix{
	"/admins",
	[]router.Route{
		router.Route{
			Name:        "AdminsIndex",
			Method:      "GET",
			Pattern:     "",
			HandlerFunc: handler.Index,
			Protected:   true,
			Previlage:   &admin,
		},

		router.Route{
			Name:        "AdminsShow",
			Method:      "GET",
			Pattern:     "/",
			HandlerFunc: handler.Show,
			Protected:   true,
			Previlage:   &admin,
		},

		router.Route{
			Name:        "AdminsShow",
			Method:      "GET",
			Pattern:     "/{userId}",
			HandlerFunc: handler.Show,
			Protected:   true,
			Previlage:   nil,
		},

		router.Route{
			Name:        "AdminRegister",
			Method:      "POST",
			Pattern:     "/register",
			HandlerFunc: handler.Register,
			Protected:   false,
			Previlage:   &admin,
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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