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