about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorSurinna Curtis <ekiru.0@gmail.com>2017-09-02 12:24:58 -0500
committerSurinna Curtis <ekiru.0@gmail.com>2017-09-13 21:47:30 -0500
commit70592cdaba18f97bc4ba492445b1800033c58619 (patch)
treea62d09ce6d1cd623cd2913c111e72d58babfb534 /config
parent30b5254a5dec0d18cb8c18e0ce48a57fea560f4b (diff)
Add a /api/v1/mutes/details route that just returns the array of mutes.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2ff7e890a..dc93fc6fe 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -191,7 +191,11 @@ Rails.application.routes.draw do
       resources :media,      only: [:create]
       resources :apps,       only: [:create]
       resources :blocks,     only: [:index]
-      resources :mutes,      only: [:index]
+      resources :mutes,      only: [:index] do
+        collection do 
+          get 'details'
+        end
+      end
       resources :favourites, only: [:index]
       resources :reports,    only: [:index, :create]