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