Commit 0aed68a7 authored by Alex Gleason's avatar Alex Gleason

Rename home#index to react#react

parent d524741a
# frozen_string_literal: true
class HomeController < ApplicationController
before_action :authenticate_user!
before_action :set_referrer_policy_header
before_action :set_initial_state_json
before_action :set_data_for_meta
class ReactController < ApplicationController
before_action :authenticate_user!, only: :react
before_action :set_referrer_policy_header, only: :react
before_action :set_initial_state_json, only: :react
before_action :set_data_for_meta, only: :react
def index
def react
@body_classes = 'app-body'
end
......
......@@ -240,7 +240,7 @@ Rails.application.routes.draw do
resources :users, only: [] do
resource :two_factor_authentication, only: [:destroy]
end
resources :custom_emojis, only: [:index, :new, :create, :update, :destroy] do
member do
post :copy
......@@ -452,17 +452,17 @@ Rails.application.routes.draw do
get '/about/dmca', to: 'about#dmca'
get '/about/sales', to: 'about#sales'
get '/tags/:tag', to: 'home#index'
get '/:username', to: 'home#index', as: :short_account
get '/:username/with_replies', to: 'home#index', as: :short_account_with_replies
get '/:username/media', to: 'home#index', as: :short_account_media
get '/:username/tagged/:tag', to: 'home#index', as: :short_account_tag
get '/:username/posts/:statusId/reblogs', to: 'home#index'
get '/:account_username/posts/:id', to: 'home#index', as: :short_account_status
get '/tags/:tag', to: 'react#react'
get '/:username', to: 'react#react', as: :short_account
get '/:username/with_replies', to: 'react#react', as: :short_account_with_replies
get '/:username/media', to: 'react#react', as: :short_account_media
get '/:username/tagged/:tag', to: 'react#react', as: :short_account_tag
get '/:username/posts/:statusId/reblogs', to: 'react#react'
get '/:account_username/posts/:id', to: 'react#react', as: :short_account_status
get '/:account_username/posts/:id/embed', to: 'statuses#embed', as: :embed_short_account_status
get '/(*any)', to: 'home#index', as: :web
root 'home#index'
get '/(*any)', to: 'react#react', as: :web
root 'react#react'
# Routes that are now to be used within webapp, but still referenced within application
# TODO : Consolidate
......
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