19 lines
375 B
PHP
19 lines
375 B
PHP
<?php
|
|
|
|
use Psr\Http\Message\ResponseInterface as Response;
|
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
use Slim\Factory\AppFactory;
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
|
$dotenv->load();
|
|
|
|
$app = AppFactory::create();
|
|
|
|
// Include the routes
|
|
require __DIR__ . '/../src/routes.php';
|
|
|
|
$app->run();
|
|
|