twitter api: add approve/deny endpoints

This commit is contained in:
William Pitcock 2018-06-07 00:04:03 +00:00
commit f8e0942745
3 changed files with 90 additions and 2 deletions

View file

@ -248,6 +248,8 @@ defmodule Pleroma.Web.Router do
post("/statuses/destroy/:id", TwitterAPI.Controller, :delete_post)
get("/pleroma/friend_requests", TwitterAPI.Controller, :friend_requests)
post("/pleroma/friendships/approve", TwitterAPI.Controller, :approve_friend_request)
post("/pleroma/friendships/deny", TwitterAPI.Controller, :deny_friend_request)
post("/friendships/create", TwitterAPI.Controller, :follow)
post("/friendships/destroy", TwitterAPI.Controller, :unfollow)