aboutsummaryrefslogtreecommitdiff
path: root/src/routes.php
diff options
context:
space:
mode:
authorCamil Staps2015-02-21 13:45:31 +0100
committerCamil Staps2015-02-21 13:45:31 +0100
commit1608adfa7bfbf027bddffe4051637bf65ce03622 (patch)
tree32bf7e57e2cb0b015a1a479e5bd2deb2664e8948 /src/routes.php
parentadded migrations, created basic app relying on dingo (diff)
Basic controllers and authentication
Diffstat (limited to 'src/routes.php')
-rw-r--r--src/routes.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/routes.php b/src/routes.php
index f40b16b..065d24a 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -3,6 +3,7 @@ Route::get('users', function(){
return 'hello world';
});
-Route::api('v1', function () {
- Route::get('users/{id}', 'CamilStaps\BotleaguesApi\UploadController@show');
+Route::api(['version' => 'v1', 'protected' => true], function () {
+ Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController');
+ Route::resource('user', 'CamilStaps\BotleaguesApi\UserController');
}); \ No newline at end of file