diff options
author | Camil Staps | 2015-04-26 15:51:52 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-26 15:51:52 +0200 |
commit | d49c7040a409d255188e8200d4b589a7f18c649f (patch) | |
tree | a2c1d9d03e5bc7c2343df30a2ade17c808857775 | |
parent | Fixed basic authentication (diff) |
Only HTTPS allowed
-rw-r--r-- | src/routes.php | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ <?php -Route::api(['version' => '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 |