DirektiveDesDons/index.php
2022-12-08 14:52:20 +01:00

20 lines
354 B
PHP

<?php
require_once("Router/Router.php");
require_once("Router/Response.php");
use Router\Response;
use Router\Router;
$app = new Router("/DirektiveDesDons");
$app->get("/", function (array $req, Response $res) {
$res->send("Hello World");
});
$app->get("/user", function (array $req, Response $res) {
$res->send("user");
});
$app->start();