ryouko/public/index.php

23 lines
540 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>Okay so Patchii basically already exists at this point but it is cheating because I just used Forgejo. This will still be happening though, need Flashii ID to exist.</p>
HTML;
});
$router->dispatch();