From d49c7040a409d255188e8200d4b589a7f18c649f Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 26 Apr 2015 15:51:52 +0200 Subject: Only HTTPS allowed --- src/routes.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/routes.php b/src/routes.php index f866789..cd04415 100644 --- a/src/routes.php +++ b/src/routes.php @@ -1,5 +1,7 @@ 'v1', 'protected' => true, 'providers' => 'basic'], function () { - Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController'); - Route::resource('user', 'CamilStaps\BotleaguesApi\UserController'); +Route::group(array('https'), function() { + Route::api(['version' => 'v1', 'protected' => true, 'providers' => 'basic'], function () { + Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController'); + Route::resource('user', 'CamilStaps\BotleaguesApi\UserController'); + }); }); \ No newline at end of file -- cgit v1.2.3