Chore: Removed unused functions from home_controller (#512)

This commit is contained in:
Tim Lange 2020-02-19 09:21:22 +01:00 committed by GitHub
parent fbefb78817
commit e0afb84502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 22 deletions

View file

@ -1,13 +1,9 @@
require 'rest-client' require 'rest-client'
require 'telegram/bot' require 'telegram/bot'
class HomeController < ApplicationController class HomeController < ApplicationController
skip_before_action :verify_authenticity_token, only: [:telegram] skip_before_action :verify_authenticity_token, only: [:telegram]
skip_before_action :authenticate_user!, only: [:telegram], raise: false skip_before_action :authenticate_user!, only: [:telegram], raise: false
skip_before_action :set_current_user skip_before_action :set_current_user
skip_before_action :check_subscription skip_before_action :check_subscription
def index; end
def status
head :ok
end
end end

View file

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Facebook Auth Example</title>
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
<body>
<div>
</div>
<%= yield %>
</body>
</html>

View file

@ -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/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' 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] resource :widget, only: [:show]
namespace :api, defaults: { format: 'json' } do namespace :api, defaults: { format: 'json' } do