safeLoad(); require_once __DIR__ . "/session.php"; $app->add(TwigMiddleware::createFromContainer($app)); $app->add('csrf'); $app->get("/", [HomeController::class, 'get']); $app->get('/feed', [FeedController::class, 'get']); $app->get('/feed/{id}', [FeedController::class, 'get_feed']); $app->addErrorMiddleware(true, true, true); $app->run();