aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/Routes.php')
-rw-r--r--bootstrap/Routes.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/bootstrap/Routes.php b/bootstrap/Routes.php
new file mode 100644
index 0000000..4cfe5de
--- /dev/null
+++ b/bootstrap/Routes.php
@@ -0,0 +1,32 @@
+<?php
+
+/* public routes */
+
+$router->get('', '../controllers/index.controller.php');
+$router->get('contact', '../controllers/contact.php');
+$router->get('feedback', '../controllers/feedback.php');
+$router->get('comments', '../controllers/comments.php');
+$router->get('construction', '../controllers/construction.php');
+$router->get('hashget', '../controllers/comments.php');
+$router->get('hashover', '../controllers/comments.php');
+
+$router->head('', '../controllers/index.controller.php');
+$router->head('contact', '../controllers/contact.php');
+$router->head('feedback', '../controllers/feedback.php');
+$router->head('comments', '../controllers/comments.php');
+$router->head('construction', '../controllers/construction.php');
+$router->head('hashget', '../controllers/comments.php');
+$router->head('hashover', '../controllers/comments.php');
+
+$router->post('?sent', '../controllers/mail.controller.php');
+$router->post('hashpost', '../controllers/comments.php');
+
+/* backend routes */
+
+$router->get('latestajax', '../bootstrap/comments/backend/latest-ajax.php');
+$router->get('countlinkajax', '../bootstrap/comments/backend/count-link-ajax.php');
+
+$router->post('commentsajax', '../bootstrap/comments/backend/comments-ajax.php');
+$router->post('formactions', '../bootstrap/comments/backend/form-actions.php');
+$router->post('loadcomments', '../bootstrap/comments/backend/load-comments.php');
+$router->post('likecomment', '../bootstrap/comments/backend/like.php');