Commit a62de51b authored by mgabdev's avatar mgabdev

Removed unused api TrendsController from ruby

• Removed:
- unused api TrendsController from ruby
parent c0d3d1d6
# 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
......@@ -336,7 +336,6 @@ Rails.application.routes.draw do
resources :suggestions, only: [:index, :destroy]
resources :scheduled_statuses, only: [:index, :show, :update, :destroy]
resources :preferences, only: [:index]
resources :trends, only: [:index]
resources :group_categories, only: [:index]
resources :conversations, only: [:index, :destroy] do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment