aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Posts/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/Posts/routes.php')
-rw-r--r--api/Posts/routes.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/api/Posts/routes.php b/api/Posts/routes.php
new file mode 100644
index 0000000..c34c120
--- /dev/null
+++ b/api/Posts/routes.php
@@ -0,0 +1,7 @@
+<?php
+
+$router->get('/posts', 'PostController@getAll');
+$router->get('/posts/{id}', 'PostController@getById');
+$router->post('/posts', 'PostController@create');
+$router->put('/posts/{id}', 'PostController@update');
+$router->delete('/posts/{id}', 'PostController@delete');