From 1608adfa7bfbf027bddffe4051637bf65ce03622 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 21 Feb 2015 13:45:31 +0100 Subject: Basic controllers and authentication --- src/routes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/routes.php') 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 -- cgit v1.2.3