Commit dcb05727 authored by mgabdev's avatar mgabdev

Updated routes.rb account and status routes

all are now pointed at home#index because its all within the react app and not the ssr haml pages

embeding statuses route still is pointed at statuses#embed as it is still a part of the ssr page
parent 4b1c4c31
...@@ -446,6 +446,14 @@ Rails.application.routes.draw do ...@@ -446,6 +446,14 @@ 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 '/: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 '/:account_username/posts/:id/embed', to: 'statuses#embed', as: :embed_short_account_status
get '/(*any)', to: 'home#index', as: :web get '/(*any)', to: 'home#index', as: :web
root 'home#index' root 'home#index'
...@@ -454,13 +462,6 @@ Rails.application.routes.draw do ...@@ -454,13 +462,6 @@ Rails.application.routes.draw do
get '/explore', to: 'directories#index', as: :explore get '/explore', to: 'directories#index', as: :explore
get '/explore/:id', to: 'directories#show', as: :explore_hashtag get '/explore/:id', to: 'directories#show', as: :explore_hashtag
get '/:username', to: 'accounts#show', as: :short_account
get '/:username/with_replies', to: 'accounts#show', as: :short_account_with_replies
get '/:username/media', to: 'accounts#show', as: :short_account_media
get '/:username/tagged/:tag', to: 'accounts#show', as: :short_account_tag
get '/:account_username/posts/:id', to: 'statuses#show', as: :short_account_status
get '/:account_username/posts/:id/embed', to: 'statuses#embed', as: :embed_short_account_status
resources :tags, only: [:show] resources :tags, only: [:show]
match '*unmatched_route', match '*unmatched_route',
......
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