|
@@ -98,16 +98,18 @@ class LuticateBusiness
|
98
|
98
|
$user_id = "{user_id:$int}";
|
99
|
99
|
|
100
|
100
|
$route->post("$prefix/users/login", "${ns}LuticateUsersBusiness", "login");
|
101
|
|
- $route->put("$prefix/users/logout", "${ns}LuticateUsersBusiness", "logout");
|
|
101
|
+ $route->post("$prefix/users/logout", "${ns}LuticateUsersBusiness", "logout");
|
102
|
102
|
$route->post("$prefix/users/add", "${ns}LuticateUsersBusiness", "add", LuticatePermissions::USER_ADD);
|
|
103
|
+ $route->post("$prefix/users/$user_id/del", "${ns}LuticateUsersBusiness", "del", LuticatePermissions::USER_DEL);
|
103
|
104
|
$route->post("$prefix/users/$user_id/edit", "${ns}LuticateUsersBusiness", "edit", LuticatePermissions::USER_EDIT);
|
104
|
|
- $route->post("$prefix/users/me/edit", "${ns}LuticateUsersBusiness", "editMe", LuticatePermissions::USER_EDIT_MYSELF);
|
|
105
|
+ $route->post("$prefix/users/me/edit", "${ns}LuticateUsersBusiness", "editMe", LuticatePermissions::USER_EDIT_ME);
|
105
|
106
|
$route->post("$prefix/users/$user_id/setPassword", "${ns}LuticateUsersBusiness", "setPassword", LuticatePermissions::USER_SET_PASSWORD);
|
106
|
|
- $route->post("$prefix/users/me/setPassword", "${ns}LuticateUsersBusiness", "setPasswordMe", LuticatePermissions::USER_SET_PASSWORD_MYSELF);
|
|
107
|
+ $route->post("$prefix/users/me/setPassword", "${ns}LuticateUsersBusiness", "setPasswordMe", LuticatePermissions::USER_SET_PASSWORD_ME);
|
107
|
108
|
|
108
|
109
|
|
109
|
110
|
$route->post("$prefix/groups/add", "${ns}LuticateGroupsBusiness", "add", LuticatePermissions::GROUP_ADD);
|
110
|
|
- $route->post("$prefix/groups/del/$group_id", "${ns}LuticateGroupsBusiness", "del", LuticatePermissions::GROUP_DEL);
|
|
111
|
+ $route->post("$prefix/groups/$group_id/del", "${ns}LuticateGroupsBusiness", "del", LuticatePermissions::GROUP_DEL);
|
|
112
|
+ $route->post("$prefix/groups/$group_id/edit", "${ns}LuticateGroupsBusiness", "edit", LuticatePermissions::GROUP_EDIT);
|
111
|
113
|
$route->post("$prefix/groups/$group_id/addUser/$user_id", "${ns}LuticateGroupsBusiness", "addUser", LuticatePermissions::GROUP_ADD_USER);
|
112
|
114
|
$route->post("$prefix/groups/$group_id/delUser/$user_id", "${ns}LuticateGroupsBusiness", "delUser", LuticatePermissions::GROUP_DEL_USER);
|
113
|
115
|
}
|