diff options
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 |