summaryrefslogtreecommitdiff
path: root/src/Middleware
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-11-20 18:55:56 +0100
committermsquare <msquare@notrademark.de>2019-06-12 10:20:08 +0200
commite948091066e4893b1b823fc80db1c1ebba174b53 (patch)
tree1bc34bf1f476abcafe536336955916ac9d929a68 /src/Middleware
parent93e578e555b6e40c1e26d85e4f32b87577f54def (diff)
Replaced old /api endpoint with ApiController
Diffstat (limited to 'src/Middleware')
-rw-r--r--src/Middleware/LegacyMiddleware.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Middleware/LegacyMiddleware.php b/src/Middleware/LegacyMiddleware.php
index 2467f25c..de16e557 100644
--- a/src/Middleware/LegacyMiddleware.php
+++ b/src/Middleware/LegacyMiddleware.php
@@ -17,7 +17,6 @@ class LegacyMiddleware implements MiddlewareInterface
protected $free_pages = [
'admin_event_config',
'angeltypes',
- 'api',
'atom',
'ical',
'login',
@@ -106,10 +105,6 @@ class LegacyMiddleware implements MiddlewareInterface
$title = ucfirst($page);
switch ($page) {
/** @noinspection PhpMissingBreakStatementInspection */
- case 'api':
- error('Api disabled temporarily.');
- redirect(page_link_to());
- /** @noinspection PhpMissingBreakStatementInspection */
case 'ical':
require_once realpath(__DIR__ . '/../../includes/pages/user_ical.php');
user_ical();