NoteCat/public/index.php

18 lines
357 B
PHP

<?php
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';
use NoteCat\Dependencies;
use NoteCat\Middlewares;
use NoteCat\Routes;
use Slim\Factory\AppFactory;
$container = Dependencies::createContainer();
$app = AppFactory::createFromContainer($container);
Middlewares::setMiddlewares($app);
Routes::setRoutes($app);
$app->run();