|
@@ -40,10 +40,9 @@ class LuticateBusiness
|
40
|
40
|
}
|
41
|
41
|
|
42
|
42
|
/**
|
43
|
|
- * @param $route LuRoute
|
44
|
43
|
* @param $prefix string
|
45
|
44
|
*/
|
46
|
|
- public static function setupRoutes($route, $prefix = "/luticate")
|
|
45
|
+ public static function setupRoutes($prefix = "/luticate")
|
47
|
46
|
{
|
48
|
47
|
$ns = 'Luticate\Auth\Business\\';
|
49
|
48
|
|
|
@@ -57,6 +56,8 @@ class LuticateBusiness
|
57
|
56
|
$permission_name = "{permission_name:$name}";
|
58
|
57
|
$permission_value = "{permission_value:$bool}";
|
59
|
58
|
|
|
59
|
+ $route = LuRoute::getInstance();
|
|
60
|
+
|
60
|
61
|
$route->post("$prefix/users/login", "${ns}LuticateUsersBusiness", "login");
|
61
|
62
|
$route->post("$prefix/users/logout", "${ns}LuticateUsersBusiness", "logout");
|
62
|
63
|
$route->post("$prefix/users/$id", "${ns}LuticateUsersBusiness", "getById", LuticatePermissions::USER_GET);
|