diff options
author | Camil Staps | 2015-02-21 22:15:00 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-21 22:15:00 +0100 |
commit | 64ebca3e5b247e5e692a6a2c0f1de7cf6b374d66 (patch) | |
tree | 6a12f6977a0f2c4862c1e876d61dff279cd1c6e6 /src/routes.php | |
parent | trying to get auth work (diff) |
filters
Diffstat (limited to 'src/routes.php')
-rw-r--r-- | src/routes.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes.php b/src/routes.php index 2f7a375..ac9bc31 100644 --- a/src/routes.php +++ b/src/routes.php @@ -1,9 +1,9 @@ <?php -Route::get('users', function(){ +Route::get('users', ['before' => 'auth.basic', function(){ return 'hello world'; -}); +}]); -Route::api(['version' => 'v1', 'before' => 'auth'], function () { +Route::api(['version' => 'v1'], function () { Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController'); Route::resource('user', 'CamilStaps\BotleaguesApi\UserController'); });
\ No newline at end of file |