Browse Source

updated ackages

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
ee6c228b2b
2 changed files with 10 additions and 5 deletions
  1. 5
    1
      composer.json
  2. 5
    4
      src/Auth/Business/LuticateBusiness.php

+ 5
- 1
composer.json View File

@@ -13,11 +13,15 @@
13 13
     },{
14 14
       "type": "vcs",
15 15
       "url":  "https://git.rthoni.com/luticate/generator.git"
16
+    },{
17
+      "type": "vcs",
18
+      "url":  "https://git.rthoni.com/luticate/doc.git"
16 19
     }],
17 20
     "require": {
18 21
       "laravel/lumen-framework": "5.1.x-dev",
19 22
       "firebase/php-jwt": "~2.0",
20
-      "luticate/utils": "*"
23
+      "luticate/utils": "*",
24
+      "luticate/doc": "*"
21 25
     },
22 26
     "require-dev": {
23 27
       "luticate/generator": "*"

+ 5
- 4
src/Auth/Business/LuticateBusiness.php View File

@@ -11,6 +11,7 @@ namespace Luticate\Auth\Business;
11 11
 use Illuminate\Http\Request;
12 12
 use Luticate\Auth\DBO\LuticatePermissions;
13 13
 use Luticate\Auth\DBO\LuticateUsersDbo;
14
+use Luticate\Doc\Business\LuDocBusiness;
14 15
 use Luticate\Utils\LuController;
15 16
 use Luticate\Utils\LuRoute;
16 17
 
@@ -31,11 +32,9 @@ class LuticateBusiness
31 32
         self::$_currentUser = $user;
32 33
     }
33 34
 
34
-    /**
35
-     * @param $route LuRoute
36
-     */
37
-    public static function setupAuth($route)
35
+    public static function setupAuth()
38 36
     {
37
+        $route = LuRoute::getInstance();
39 38
         $route->addMiddleware('Luticate\Auth\Business\LuticateMiddleware');
40 39
     }
41 40
 
@@ -58,6 +57,8 @@ class LuticateBusiness
58 57
 
59 58
         $route = LuRoute::getInstance();
60 59
 
60
+        LuDocBusiness::setupRoutes("$prefix/doc");
61
+
61 62
         $route->post("$prefix/users/login", "${ns}LuticateUsersBusiness", "login");
62 63
         $route->post("$prefix/users/logout", "${ns}LuticateUsersBusiness", "logout");
63 64
         $route->post("$prefix/users/$id", "${ns}LuticateUsersBusiness", "getById", LuticatePermissions::USER_GET);

Loading…
Cancel
Save