summaryrefslogtreecommitdiff
path: root/src/gemini/Gemini.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/gemini/Gemini.php')
-rw-r--r--src/gemini/Gemini.php8
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;
});