...
|
...
|
@@ -10,8 +10,8 @@ import ( |
|
|
func init() {
|
|
|
ns := web.NewNamespace("/v1/role-user",
|
|
|
web.NSBefore(filters.AllowCors(), middlewares.CheckAdminToken()),
|
|
|
web.NSRouter("/", &controllers.RoleUserController{}, "Post:CreateRole"),
|
|
|
web.NSRouter("/", &controllers.RoleUserController{}, "Delete:RemoveRole"),
|
|
|
web.NSRouter("/", &controllers.RoleUserController{}, "Post:CreateRoleUser"),
|
|
|
web.NSRouter("/", &controllers.RoleUserController{}, "Delete:RemoveRoleUser"),
|
|
|
web.NSRouter("/all", &controllers.RoleUserController{}, "Post:ListRoleUser"),
|
|
|
)
|
|
|
web.AddNamespace(ns)
|
...
|
...
|
|