aboutsummaryrefslogtreecommitdiff
path: root/app/class/routes.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-22 02:04:53 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-22 02:04:53 +0100
commit695908c7ab2a5d5f011f616d2af3368da7131a6f (patch)
treecbd6c2a43495e77863d3611e2f6b12985b1111d8 /app/class/routes.php
parenta8ed9070e7773f3147a33dbee7d45ce24bd8959d (diff)
downloadwcms-695908c7ab2a5d5f011f616d2af3368da7131a6f.tar.gz
wcms-695908c7ab2a5d5f011f616d2af3368da7131a6f.zip
home columns and download function added
Diffstat (limited to 'app/class/routes.php')
-rw-r--r--app/class/routes.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/class/routes.php b/app/class/routes.php
index db57b77..9f3ce37 100644
--- a/app/class/routes.php
+++ b/app/class/routes.php
@@ -14,7 +14,8 @@ class Routes
}
$router->addMatchTypes(array('cid' => '[a-zA-Z0-9-_+,\'!%@&.$€=\(\|\)]+'));
$router->addRoutes([
- ['GET|POST', '/', 'Controllerhome#desktop', 'home'],
+ ['GET', '/', 'Controllerhome#desktop', 'home'],
+ ['POST', '/columns', 'Controllerhome#columns', 'homecolumns'],
['POST', '/!co', 'Controllerconnect#log', 'log'],
['GET', '/!co', 'Controllerconnect#connect', 'connect'],
['POST', '/!search', 'Controllerhome#search', 'search'],
@@ -40,6 +41,7 @@ class Routes
['GET', '/[cid:art]/edit', 'Controllerart#edit', 'artedit'],
['GET', '/[cid:art]/render', 'Controllerart#render', 'artrender'],
['GET', '/[cid:art]/log', 'Controllerart#log', 'artlog'],
+ ['GET', '/[cid:art]/download', 'Controllerart#download', 'artdownload'],
['POST', '/[cid:art]/edit', 'Controllerart#update', 'artupdate'],
['GET', '/[cid:art]/delete', 'Controllerart#confirmdelete', 'artconfirmdelete'],
['POST', '/[cid:art]/delete', 'Controllerart#delete', 'artdelete'],