diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-07-08 17:34:15 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-07-08 17:34:15 -0100 |
commit | c5cf789ef478fc70fcbeb513d44ae83cdd08971f (patch) | |
tree | 1139978249b36f8065b7e06cfaaedd6b368f5584 | |
parent | fbed2c20f6101907492006d4a6924fdbfd884bc3 (diff) |
add like endpoint
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | appinfo/routes.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 620d46c0..93f73171 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -71,6 +71,8 @@ return [ ['name' => 'Local#postCreate', 'url' => '/api/v1/post', 'verb' => 'POST'], ['name' => 'Local#postDelete', 'url' => '/api/v1/post', 'verb' => 'DELETE'], + ['name' => 'Local#postLike', 'url' => '/api/v1/post/like', 'verb' => 'POST'], + ['name' => 'Local#postUnlike', 'url' => '/api/v1/post/like', 'verb' => 'DELETE'], ['name' => 'Local#postBoost', 'url' => '/api/v1/post/boost', 'verb' => 'POST'], ['name' => 'Local#postUnboost', 'url' => '/api/v1/post/boost', 'verb' => 'DELETE'], |