ryouko/public/index.php

24 lines
458 B
PHP
Raw Normal View History

2022-07-04 00:16:43 +00:00
<?php
namespace Ryouko;
2024-03-30 00:07:09 +00:00
use Index\Http\Routing\HttpRouter;
2022-07-04 00:16:43 +00:00
require_once __DIR__ . '/../ryouko.php';
2024-03-30 00:07:09 +00:00
$router = new HttpRouter;
2022-07-04 00:16:43 +00:00
$router->use('/', function($response) {
2023-09-05 20:08:16 +00:00
$response->setPoweredBy('Ryouko');
2022-07-04 00:16:43 +00:00
});
$router->get('/', function() {
2023-09-05 20:08:16 +00:00
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;
2022-07-04 00:16:43 +00:00
});
$router->dispatch();