summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-07-08 17:34:15 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-07-08 17:34:15 -0100
commitc5cf789ef478fc70fcbeb513d44ae83cdd08971f (patch)
tree1139978249b36f8065b7e06cfaaedd6b368f5584 /appinfo
parentfbed2c20f6101907492006d4a6924fdbfd884bc3 (diff)
add like endpoint
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php2
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'],