23 lines
458 B
PHP
23 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();
|