aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2015-04-26 15:51:52 +0200
committerCamil Staps2015-04-26 15:51:52 +0200
commitd49c7040a409d255188e8200d4b589a7f18c649f (patch)
treea2c1d9d03e5bc7c2343df30a2ade17c808857775
parentFixed basic authentication (diff)
Only HTTPS allowed
-rw-r--r--src/routes.php8
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