summaryrefslogtreecommitdiff
path: root/src/routes.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2026-02-19 14:52:15 +0100
committerDaniel Weipert <git@mail.dweipert.de>2026-02-19 14:52:15 +0100
commitaa908ab7bd03818a2cb1f9b4686034f08736d1cb (patch)
treed677fece0783b9ffe629ef881d1913df23b11f8b /src/routes.php
initial commitHEADmain
Diffstat (limited to 'src/routes.php')
-rw-r--r--src/routes.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/routes.php b/src/routes.php
new file mode 100644
index 0000000..19a81b2
--- /dev/null
+++ b/src/routes.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace ERPHP;
+
+use ERPHP\Router\Route;
+use ERPHP\Router\RoutesDefinitionInterface;
+use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpFoundation\Response;
+
+return new class implements RoutesDefinitionInterface
+{
+ public function get(): array
+ {
+ return [
+ new Route("/", function (Request $request) {
+ return new Response("/ route response");
+ }),
+ ];
+ }
+};