about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-26 19:30:45 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-26 19:30:45 +0100
commit004382e4d09f90e5ca824996c4b20e99599bf98f (patch)
tree7ade0c42cdc314045b1038489384f1b998d8b4ca /config
parent7376af90f79b1de0c4cdd294f3f4d1481eedf0d7 (diff)
Adding follow requests API
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e8c8f619d..2e9b2a87c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -104,6 +104,13 @@ Rails.application.routes.draw do
       resources :media,    only: [:create]
       resources :apps,     only: [:create]
 
+      resources :follow_requests, only: [:index] do
+        member do
+          post :authorize
+          post :reject
+        end
+      end
+
       resources :notifications, only: [:index]
 
       resources :accounts, only: [:show] do