Improvements

This commit is contained in:
2025-05-06 08:38:32 -04:00
parent 05131ec50d
commit 04bf0fc622
4 changed files with 24 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ use League\Route\Http\Exception\MethodNotAllowedException;
use League\Route\Http\Exception\NotFoundException;
use League\Route\RouteGroup;
use League\Route\Router;
use League\Route\Strategy\JsonStrategy;
use Nyholm\Psr7\Factory\Psr17Factory;
use Siteworxpro\App\Controllers\MiddlewaresController;
use Siteworxpro\App\Controllers\RoutesController;
@@ -76,6 +77,7 @@ class Server
);
$this->router = new Router();
$this->router->setStrategy(new JsonStrategy(new JsonResponseFactory()));
$this->registerRoutes();
// $this->bootModelCapsule(); // no db