diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 13:55:04 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 13:55:04 +0100 |
commit | 13acdbd444b0ae26e83ab8cf62d60a7f59268545 (patch) | |
tree | 9186bda4bffa9751c5e93da2d09d762f40cc0adc /app/class/routes.php | |
parent | d0ef17169701f90a9dab5f50e3eb61954653cae2 (diff) | |
download | wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip |
admin panel
Diffstat (limited to 'app/class/routes.php')
-rw-r--r-- | app/class/routes.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/class/routes.php b/app/class/routes.php index 5edfa81..6eb992b 100644 --- a/app/class/routes.php +++ b/app/class/routes.php @@ -10,7 +10,7 @@ class Routes { $router = new AltoRouter(); if(!empty(Config::basepath())) { - $router->setBasePath(DIRECTORY_SEPARATOR . Config::basepath()); + $router->setBasePath('/' . Config::basepath()); } $router->addMatchTypes(array('cid' => '[a-zA-Z0-9-_+,\'!%@&.$€=\(\|\)]+')); $router->addRoutes([ @@ -19,6 +19,8 @@ class Routes ['GET', '/!co', 'Controllerconnect#connect', 'connect'], ['GET', '/!m', 'Controllermedia#desktop', 'media'], ['GET', '/!font', 'Controllerfont#desktop', 'font'], + ['POST', '/!admin', 'Controlleradmin#update', 'adminupdate'], + ['GET', '/!admin', 'Controlleradmin#desktop', 'admin'], ['GET', '/!font/render', 'Controllerfont#render', 'fontrender'], ['POST', '/!font/add', 'Controllerfont#add', 'fontadd'], ['GET', '/[cid:art]/', 'Controllerart#read', 'artread/'], |