ryouko/public/index.php
2024-03-30 00:07:09 +00:00

24 lines
458 B
PHP

<?php
namespace Ryouko;
use Index\Http\Routing\HttpRouter;
require_once __DIR__ . '/../ryouko.php';
$router = new HttpRouter;
$router->use('/', function($response) {
$response->setPoweredBy('Ryouko');
});
$router->get('/', function() {
return <<<HTML
<!doctype html>
<meta charset="utf-8">
<title>Patchii Snippets</title>
<p>Not sure if it'll be coming sooner than Patchii itself at this point but we'll see.</p>
HTML;
});
$router->dispatch();