Removed unused api TrendsController from ruby

• Removed:
- unused api TrendsController from ruby
This commit is contained in:
mgabdev 2020-11-09 12:33:28 -06:00
parent c0d3d1d6c4
commit a62de51b78
2 changed files with 0 additions and 22 deletions

View File

@ -1,21 +0,0 @@
# frozen_string_literal: true
class Api::V1::TrendsController < Api::BaseController
include Authorization
before_action -> { doorkeeper_authorize! :read }
before_action :require_user!
before_action :set_tags
respond_to :json
def index
render json: @tags, each_serializer: REST::TagSerializer
end
private
def set_tags
@tags = TrendingTags.get(7)
end
end

View File

@ -336,7 +336,6 @@ Rails.application.routes.draw do
resources :suggestions, only: [:index, :destroy] resources :suggestions, only: [:index, :destroy]
resources :scheduled_statuses, only: [:index, :show, :update, :destroy] resources :scheduled_statuses, only: [:index, :show, :update, :destroy]
resources :preferences, only: [:index] resources :preferences, only: [:index]
resources :trends, only: [:index]
resources :group_categories, only: [:index] resources :group_categories, only: [:index]
resources :conversations, only: [:index, :destroy] do resources :conversations, only: [:index, :destroy] do