Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2020-03-12 15:49:14 +0300
committerJonne Haß <me@jhass.eu>2020-03-20 14:38:27 +0300
commit2d28ddc1ef3cb54002118856f27601afd091f875 (patch)
treeadc56088617eda341c0e40a01f55bb348ed2b498 /config
parent6278925ce2a77d9c19721aca9c3cafc81c5cb2d3 (diff)
Add API route to (un)block a user
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 4651d6db6..9e6cad3f1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -255,6 +255,8 @@ Rails.application.routes.draw do
get :contacts
get :photos
get :posts
+ post :block
+ delete :block
end
resources :tag_followings, only: %i[index create destroy]
get "search/users" => "search#user_index", :as => "user_index"