aboutsummaryrefslogtreecommitdiff
path: root/app/class/routes.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-11 19:20:30 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-11 19:20:30 +0100
commitcea923a1e82a7e8ce696418c3a5a0f7703871101 (patch)
treeee2b38865867119a682cb1f97a40522e2bf0f03d /app/class/routes.php
parent45903fe3960b65d63f70188640630c895dbbe222 (diff)
downloadwcms-cea923a1e82a7e8ce696418c3a5a0f7703871101.tar.gz
wcms-cea923a1e82a7e8ce696418c3a5a0f7703871101.zip
correct-basepath
Diffstat (limited to 'app/class/routes.php')
-rw-r--r--app/class/routes.php2
1 files changed, 1 insertions, 1 deletions
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/'],