diff options
author | Marvin Borner | 2018-08-24 13:17:32 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-24 13:17:32 +0200 |
commit | 0ee38e98532a9daf7ba08ab65b7f73d6505e0aea (patch) | |
tree | 6ff916179bb4ebe14369ea99b84109dc6e52ba13 /api/Posts/routes.php | |
parent | 3045cb39be8b9c9cb3ca6ed643ccceac0042f0c0 (diff) |
Began API for posts
Diffstat (limited to 'api/Posts/routes.php')
-rw-r--r-- | api/Posts/routes.php | 7 |
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'); |