From cea923a1e82a7e8ce696418c3a5a0f7703871101 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 19:20:30 +0100 Subject: correct-basepath --- app/class/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/class/routes.php') diff --git a/app/class/routes.php b/app/class/routes.php index f24492b..bd9fd71 100644 --- a/app/class/routes.php +++ b/app/class/routes.php @@ -9,7 +9,7 @@ class Routes public function match() { $router = new AltoRouter(); - $router->setBasePath(Config::basepath()); + $router->setBasePath('/' . Config::basepath()); $router->addRoutes([ ['GET|POST', '/', 'Backrouter#run', 'backrouter'], ['GET', '/[a:art]/', 'Controllerart#read', 'artread/'], -- cgit v1.2.3