From 0dfda0825cc769d06eb466197d20e05d56ffb040 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Thu, 30 Apr 2020 09:38:37 +0200 Subject: [PATCH] wip --- app/Server/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Server/Factory.php b/app/Server/Factory.php index 3ad800e..81f7a95 100644 --- a/app/Server/Factory.php +++ b/app/Server/Factory.php @@ -110,7 +110,7 @@ class Factory protected function addAdminRoutes() { - $adminCondition = 'request.headers.get("Host") matches "/'.config('expose.admin.subdomain').'\./i"'; + $adminCondition = 'request.headers.get("Host") matches "/^'.config('expose.admin.subdomain').'\./i"'; $this->router->get('/', RedirectToUsersController::class, $adminCondition); $this->router->get('/users', ListUsersController::class, $adminCondition);