misuzu/public/index.php

18 lines
339 B
PHP
Raw Normal View History

<?php
namespace Misuzu;
use Aitemu\RouterRequest;
require_once __DIR__ . '/../misuzu.php';
ob_start('ob_gzhandler');
$app = Application::getInstance();
$app->startRouter(include_once __DIR__ . '/../routes.php');
$app->startTemplating();
echo $app->router->resolve(
RouterRequest::fromServer($_SERVER, $_GET, $_POST, $_COOKIE)
);