about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-26 18:19:53 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-04-27 00:19:53 +0200
commit0618f09939b7afc607bcd983139b91e056debe4d (patch)
treee6b362f7f2928a09bf5dd1c387c1737421b0f359 /config
parenta23eaf720e08db8503c443816e652b3683525e02 (diff)
Add spec coverage and refactor authorize_follows controller (#2505)
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 34c4fca4c..9adaffcaf 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -71,8 +71,7 @@ Rails.application.routes.draw do
   resources :tags,  only: [:show]
 
   # Remote follow
-  get  :authorize_follow, to: 'authorize_follow#new'
-  post :authorize_follow, to: 'authorize_follow#create'
+  resource :authorize_follow, only: [:show, :create]
 
   namespace :admin do
     resources :pubsubhubbub, only: [:index]