Removed unused api TrendsController from ruby
• Removed: - unused api TrendsController from ruby
This commit is contained in:
parent
c0d3d1d6c4
commit
a62de51b78
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue