Rename home#index to react#react
This commit is contained in:
parent
d524741a3a
commit
0aed68a7e3
|
@ -1,12 +1,12 @@
|
|||
# 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
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue