about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-09-30 22:05:42 +0200
committerGitHub <noreply@github.com>2017-09-30 22:05:42 +0200
commiteb605141ffb95290c5a537802ea418e6e45bf95f (patch)
treec09b15c974ad54ab03acfc650f83e8e73d8b139f /config
parent1e1d7887577ce5e2b1ceb0c1d08578ca173d5f5f (diff)
Fix #5104 - GET /api/v1/apps/verify_credentials to confirm app works (#5112)
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ad2d8fca2..de3c1e0f9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -194,12 +194,17 @@ Rails.application.routes.draw do
 
       resources :follows,    only: [:create]
       resources :media,      only: [:create, :update]
-      resources :apps,       only: [:create]
       resources :blocks,     only: [:index]
       resources :mutes,      only: [:index]
       resources :favourites, only: [:index]
       resources :reports,    only: [:index, :create]
 
+      namespace :apps do
+        get :verify_credentials, to: 'credentials#show'
+      end
+
+      resources :apps, only: [:create]
+
       resource :instance,      only: [:show]
       resource :domain_blocks, only: [:show, :create, :destroy]