aboutsummaryrefslogtreecommitdiff
path: root/src/routes.php
diff options
context:
space:
mode:
authorCamil Staps2015-04-26 12:37:58 +0200
committerCamil Staps2015-04-26 12:37:58 +0200
commitbcb71edf812c9c41833d5a66c39844ec35466190 (patch)
tree1a7d04482ca4676b4384fce3367f49e67b8b10f6 /src/routes.php
parentmigrations have package's namespace for compatibility (diff)
Fixed basic authentication
Diffstat (limited to 'src/routes.php')
-rw-r--r--src/routes.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/routes.php b/src/routes.php
index 1ac35ab..f866789 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -1,14 +1,5 @@
<?php
-Route::get('users', ['before' => 'auth.basic', function(){
- return 'hello world';
-}]);
-
Route::api(['version' => 'v1', 'protected' => true, 'providers' => 'basic'], function () {
Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController');
Route::resource('user', 'CamilStaps\BotleaguesApi\UserController');
-});
-
-Route::when('bot', 'botleaguesapi-http-auth');
-Route::when('bot/*', 'botleaguesapi-http-auth');
-Route::when('user', 'botleaguesapi-http-auth');
-Route::when('user/*', 'botleaguesapi-http-auth'); \ No newline at end of file
+}); \ No newline at end of file