From d7cc2419a6b60896c0181f586fc2a2019e791439 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 9 Nov 2020 12:31:24 -0600 Subject: [PATCH] Removed unused DirectController for timelines from ruby MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - unused DirectController for timelines from ruby --- app/controllers/api/v1/timelines/direct_controller.rb | 11 ----------- config/routes.rb | 1 - 2 files changed, 12 deletions(-) delete mode 100644 app/controllers/api/v1/timelines/direct_controller.rb diff --git a/app/controllers/api/v1/timelines/direct_controller.rb b/app/controllers/api/v1/timelines/direct_controller.rb deleted file mode 100644 index 8b076c0c..00000000 --- a/app/controllers/api/v1/timelines/direct_controller.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -class Api::V1::Timelines::DirectController < Api::BaseController - before_action :require_admin! - respond_to :json - - def show - render json: [-1] - end - -end diff --git a/config/routes.rb b/config/routes.rb index e19f28cf..e7fd83fa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -319,7 +319,6 @@ Rails.application.routes.draw do end namespace :timelines do - resource :direct, only: :show, controller: :direct resource :home, only: :show, controller: :home resource :public, only: :show, controller: :public resource :pro, only: :show, controller: :pro