diff --git a/Source/API/script/Config/composer.json b/Source/API/script/Config/composer.json index 4d1afe0..da36f1b 100644 --- a/Source/API/script/Config/composer.json +++ b/Source/API/script/Config/composer.json @@ -7,7 +7,6 @@ "slim/psr7": "dev-master", "psr/http-message": "^1.0", "guzzlehttp/psr7": "^2.4", - "guzzlehttp/guzzle": "^7.5", - "selective/basepath": "^2.1" + "guzzlehttp/guzzle": "^7.5" } } diff --git a/Source/API/script/index.php b/Source/API/script/index.php index 2de6b9d..942d9fa 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -4,7 +4,6 @@ use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Slim\Exception\HttpNotFoundException; use Slim\Factory\AppFactory; -use Selective\BasePath\BasePathMiddleware; try{ require 'Config/vendor/autoload.php'; @@ -14,12 +13,9 @@ try{ */ $app = AppFactory::create(); -// Add Routing Middleware + // Add Routing Middleware $app->addRoutingMiddleware(); -// Set the base path to run the app in a subdirectory. -// This path is used in urlFor(). - $app->add(new BasePathMiddleware($app)); /** * Add Error Handling Middleware *