diff options
author | Camil Staps | 2015-02-21 21:42:43 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-21 21:42:43 +0100 |
commit | b7d7f5b90e373329e8b5b9a8aa5f6879834f076e (patch) | |
tree | adf8b5575e3e3b1bf7b864042b1e94420297bc24 /src/routes.php | |
parent | Basic controllers and authentication (diff) |
trying to get auth work
Diffstat (limited to 'src/routes.php')
-rw-r--r-- | src/routes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes.php b/src/routes.php index 065d24a..2f7a375 100644 --- a/src/routes.php +++ b/src/routes.php @@ -3,7 +3,7 @@ Route::get('users', function(){ return 'hello world'; }); -Route::api(['version' => 'v1', 'protected' => true], function () { +Route::api(['version' => 'v1', 'before' => 'auth'], function () { Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController'); Route::resource('user', 'CamilStaps\BotleaguesApi\UserController'); });
\ No newline at end of file |