diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-11 13:15:02 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-11 13:15:02 +0100 |
commit | 09caff2b2a06d1f8ac8203567035a21c612165f9 (patch) | |
tree | 999be04ff0a418a33e438be9befc8c9297e383f4 /src/gemini/Gemini.php | |
parent | 6301f63bd348109b8693a922f02e16d49205a8fd (diff) |
send resources
Diffstat (limited to 'src/gemini/Gemini.php')
-rw-r--r-- | src/gemini/Gemini.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gemini/Gemini.php b/src/gemini/Gemini.php index 4c420d4..23915d0 100644 --- a/src/gemini/Gemini.php +++ b/src/gemini/Gemini.php @@ -6,6 +6,7 @@ use App\DB; use App\EventRunner; use App\View; use App\gemini\Controller\Building; +use App\gemini\Controller\Event; use App\gemini\Controller\Unit; use App\gemini\Controller\User; use App\gemini\Controller\Village; @@ -157,6 +158,13 @@ class Gemini $response = $villageController->show($request); } + else if (preg_match('@event/(\d+)/cancel@', $request->getPath(), $routeMatch)) { + $request->set('id', $routeMatch[1]); + + $eventController = new Event(); + $response = $eventController->cancel($request); + } + return $response; }); |