diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-29 02:01:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 02:01:24 +0200 |
commit | 8bb74e50beb3e6602c183e59086ccebe87f96fb2 (patch) | |
tree | cec5f848686a777a5318ed51cf9b7560414cc527 /app/controllers/api | |
parent | 90b64c006998ec3bae365007781c61e8a79eeeef (diff) |
Add GET /api/v2/search which returns rich tag objects, adjust web UI (#7661)
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v2/search_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/api/v2/search_controller.rb b/app/controllers/api/v2/search_controller.rb new file mode 100644 index 000000000..2e91d68ee --- /dev/null +++ b/app/controllers/api/v2/search_controller.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +class Api::V2::SearchController < Api::V1::SearchController + def index + @search = Search.new(search) + render json: @search, serializer: REST::V2::SearchSerializer + end +end |