-
Notifications
You must be signed in to change notification settings - Fork 321
/
Router.go
37 lines (31 loc) · 1.84 KB
/
Router.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package admin
import (
"github.com/astaxie/beego"
"github.com/beego/admin/src/rbac"
)
func router() {
beego.Router("/", &rbac.MainController{}, "*:Index")
beego.Router("/public/index", &rbac.MainController{}, "*:Index")
beego.Router("/public/login", &rbac.MainController{}, "*:Login")
beego.Router("/public/logout", &rbac.MainController{}, "*:Logout")
beego.Router("/public/changepwd", &rbac.MainController{}, "*:Changepwd")
beego.Router("/rbac/user/AddUser", &rbac.UserController{}, "*:AddUser")
beego.Router("/rbac/user/UpdateUser", &rbac.UserController{}, "*:UpdateUser")
beego.Router("/rbac/user/DelUser", &rbac.UserController{}, "*:DelUser")
beego.Router("/rbac/user/index", &rbac.UserController{}, "*:Index")
beego.Router("/rbac/node/AddAndEdit", &rbac.NodeController{}, "*:AddAndEdit")
beego.Router("/rbac/node/DelNode", &rbac.NodeController{}, "*:DelNode")
beego.Router("/rbac/node/index", &rbac.NodeController{}, "*:Index")
beego.Router("/rbac/group/AddGroup", &rbac.GroupController{}, "*:AddGroup")
beego.Router("/rbac/group/UpdateGroup", &rbac.GroupController{}, "*:UpdateGroup")
beego.Router("/rbac/group/DelGroup", &rbac.GroupController{}, "*:DelGroup")
beego.Router("/rbac/group/index", &rbac.GroupController{}, "*:Index")
beego.Router("/rbac/role/AddAndEdit", &rbac.RoleController{}, "*:AddAndEdit")
beego.Router("/rbac/role/DelRole", &rbac.RoleController{}, "*:DelRole")
beego.Router("/rbac/role/AccessToNode", &rbac.RoleController{}, "*:AccessToNode")
beego.Router("/rbac/role/AddAccess", &rbac.RoleController{}, "*:AddAccess")
beego.Router("/rbac/role/RoleToUserList", &rbac.RoleController{}, "*:RoleToUserList")
beego.Router("/rbac/role/AddRoleToUser", &rbac.RoleController{}, "*:AddRoleToUser")
beego.Router("/rbac/role/Getlist", &rbac.RoleController{}, "*:Getlist")
beego.Router("/rbac/role/index", &rbac.RoleController{}, "*:Index")
}