about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb44
1 files changed, 26 insertions, 18 deletions
diff --git a/config/routes.rb b/config/routes.rb
index a16f89687..626e4688c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -139,6 +139,8 @@ Rails.application.routes.draw do
       end
     end
 
+    resources :flavours, only: [:index, :show, :update], param: :flavour
+
     resource :delete, only: [:show, :destroy]
     resource :migration, only: [:show, :create]
 
@@ -318,6 +320,7 @@ Rails.application.routes.draw do
       end
 
       namespace :timelines do
+        resource :direct, only: :show, controller: :direct
         resource :home, only: :show, controller: :home
         resource :public, only: :show, controller: :public
         resources :tag, only: :show
@@ -340,22 +343,22 @@ Rails.application.routes.draw do
         end
       end
 
-      namespace :crypto do
-        resources :deliveries, only: :create
-
-        namespace :keys do
-          resource :upload, only: [:create]
-          resource :query,  only: [:create]
-          resource :claim,  only: [:create]
-          resource :count,  only: [:show]
-        end
-
-        resources :encrypted_messages, only: [:index] do
-          collection do
-            post :clear
-          end
-        end
-      end
+#      namespace :crypto do
+#        resources :deliveries, only: :create
+#
+#        namespace :keys do
+#          resource :upload, only: [:create]
+#          resource :query,  only: [:create]
+#          resource :claim,  only: [:create]
+#          resource :count,  only: [:show]
+#        end
+#
+#        resources :encrypted_messages, only: [:index] do
+#          collection do
+#            post :clear
+#          end
+#        end
+#      end
 
       resources :conversations, only: [:index, :destroy] do
         member do
@@ -365,7 +368,11 @@ Rails.application.routes.draw do
 
       resources :media,        only: [:create, :update, :show]
       resources :blocks,       only: [:index]
-      resources :mutes,        only: [:index]
+      resources :mutes,        only: [:index] do
+        collection do
+          get 'details'
+        end
+      end
       resources :favourites,   only: [:index]
       resources :bookmarks,    only: [:index]
       resources :reports,      only: [:create]
@@ -395,9 +402,10 @@ Rails.application.routes.draw do
         end
       end
 
-      resources :notifications, only: [:index, :show] do
+      resources :notifications, only: [:index, :show, :destroy] do
         collection do
           post :clear
+          delete :destroy_multiple
         end
 
         member do