aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php4
-rw-r--r--src/routes.php1
2 files changed, 1 insertions, 4 deletions
diff --git a/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php b/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php
index bb90671..cbedf9f 100644
--- a/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php
+++ b/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php
@@ -21,9 +21,6 @@ class BotleaguesApiServiceProvider extends ServiceProvider {
*/
public function boot()
{
- #$this->package('camil-staps/botleagues-api', null, __DIR__.'/../..');
- #$this->loadAutoloader(base_path('vendor'));
-
$this->loadViewsFrom(__DIR__ . '/../../views', 'botleagues-api');
$this->publishes([ __DIR__ . '/../../views' => base_path('resources/view/vendor/botleagues-api')], 'views');
@@ -31,7 +28,6 @@ class BotleaguesApiServiceProvider extends ServiceProvider {
include __DIR__ . '/../../filters.php';
- $api = app('api.router');
include __DIR__ . '/../../routes.php';
// To allow loading API requests from the specified domain
diff --git a/src/routes.php b/src/routes.php
index d424db8..b11e2ff 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -1,4 +1,5 @@
<?php
+$api = app('api.router');
Route::group(['https'], function() use ($api) {
$api->version('v1', ['protected' => false], function ($api) {