about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-29 02:01:24 +0200
committerGitHub <noreply@github.com>2018-05-29 02:01:24 +0200
commit8bb74e50beb3e6602c183e59086ccebe87f96fb2 (patch)
treecec5f848686a777a5318ed51cf9b7560414cc527 /config
parent90b64c006998ec3bae365007781c61e8a79eeeef (diff)
Add GET /api/v2/search which returns rich tag objects, adjust web UI (#7661)
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2fcb885ed..31e90e2ff 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -315,6 +315,10 @@ Rails.application.routes.draw do
       end
     end
 
+    namespace :v2 do
+      get '/search', to: 'search#index', as: :search
+    end
+
     namespace :web do
       resource :settings, only: [:update]
       resource :embed, only: [:create]