mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 14:18:14 +01:00
28 lines
396 B
PHP
28 lines
396 B
PHP
<?php
|
|
|
|
require __DIR__ . "/vendor/autoload.php";
|
|
|
|
use Dumbo\Dumbo;
|
|
|
|
$app = new Dumbo();
|
|
|
|
$app->get("/", function ($context) {
|
|
$html = <<<HTML
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Dumbo</title>
|
|
</head>
|
|
<body>
|
|
<h1>Welcome to Dumbo!</h1>
|
|
<p>This is an HTML response.</p>
|
|
</body>
|
|
</html>
|
|
HTML;
|
|
|
|
return $context->html($html);
|
|
});
|
|
|
|
$app->run();
|