Delete BasePath cause base path is now defined
continuous-integration/drone/push Build is failing Details

master
dorian.hodin 2 years ago
parent 471e0cdb80
commit 3c250430a9

@ -7,7 +7,6 @@
"slim/psr7": "dev-master", "slim/psr7": "dev-master",
"psr/http-message": "^1.0", "psr/http-message": "^1.0",
"guzzlehttp/psr7": "^2.4", "guzzlehttp/psr7": "^2.4",
"guzzlehttp/guzzle": "^7.5", "guzzlehttp/guzzle": "^7.5"
"selective/basepath": "^2.1"
} }
} }

@ -4,7 +4,6 @@ use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Exception\HttpNotFoundException; use Slim\Exception\HttpNotFoundException;
use Slim\Factory\AppFactory; use Slim\Factory\AppFactory;
use Selective\BasePath\BasePathMiddleware;
try{ try{
require 'Config/vendor/autoload.php'; require 'Config/vendor/autoload.php';
@ -14,12 +13,9 @@ try{
*/ */
$app = AppFactory::create(); $app = AppFactory::create();
// Add Routing Middleware // Add Routing Middleware
$app->addRoutingMiddleware(); $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 * Add Error Handling Middleware
* *

Loading…
Cancel
Save