diff options
Diffstat (limited to 'src/routes.php')
-rw-r--r-- | src/routes.php | 5 |
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 |