diff options
Diffstat (limited to 'app/Routes.php')
-rw-r--r-- | app/Routes.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/Routes.php b/app/Routes.php new file mode 100644 index 0000000..59c0f40 --- /dev/null +++ b/app/Routes.php @@ -0,0 +1,31 @@ +<?php + +/* public routes */ + +$router->get('', '../app/controllers/index.controller.php'); +$router->get('contact', '../app/controllers/contact.controller.php'); +$router->get('wall', '../app/controllers/wall.controller.php'); +$router->get('comments', '../app/controllers/comments.controller.php'); +$router->get('about', '../app/controllers/about.controller.php'); +$router->get('hashget', '../app/controllers/comments.controller.php'); +$router->get('hashover', '../app/controllers/comments.controller.php'); + +$router->head('', '../app/controllers/index.controller.php'); +$router->head('contact', '../app/controllers/contact.controller.php'); +$router->head('wall', '../app/controllers/wall.controller.php'); +$router->head('comments', '../app/controllers/comments.controller.php'); +$router->head('hashget', '../app/controllers/comments.controller.php'); +$router->head('hashover', '../app/controllers/comments.controller.php'); + +$router->post('contact', '../app/controllers/contact.controller.php'); +$router->post('hashpost', '../app/controllers/comments.controller.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'); |