From e0afb84502d75dd3bcab9031a0598d84090a4d49 Mon Sep 17 00:00:00 2001 From: Tim Lange Date: Wed, 19 Feb 2020 09:21:22 +0100 Subject: [PATCH] Chore: Removed unused functions from home_controller (#512) --- app/controllers/home_controller.rb | 6 +----- app/views/home/index.html.erb | 15 --------------- config/routes.rb | 2 -- 3 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 app/views/home/index.html.erb diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index e700f2570..d811b859e 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,13 +1,9 @@ require 'rest-client' require 'telegram/bot' + class HomeController < ApplicationController skip_before_action :verify_authenticity_token, only: [:telegram] skip_before_action :authenticate_user!, only: [:telegram], raise: false skip_before_action :set_current_user skip_before_action :check_subscription - def index; end - - def status - head :ok - end end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb deleted file mode 100644 index 3bc2f8bf8..000000000 --- a/app/views/home/index.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - - - - Facebook Auth Example - <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> - <%= javascript_include_tag "application", "data-turbolinks-track" => true %> - <%= csrf_meta_tags %> - - -
-
-<%= yield %> - - - diff --git a/config/routes.rb b/config/routes.rb index 06bbdddb6..85eba5b73 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,8 +15,6 @@ Rails.application.routes.draw do get '/app/settings/inboxes/new/twitter', to: 'dashboard#index', as: 'app_new_twitter_inbox' get '/app/settings/inboxes/new/:inbox_id/agents', to: 'dashboard#index', as: 'app_twitter_inbox_agents' - match '/status', to: 'home#status', via: [:get] - resource :widget, only: [:show] namespace :api, defaults: { format: 'json' } do