Updated routes to have root point to react

• Updated:
- routes to have root point to react
This commit is contained in:
mgabdev
2020-08-06 00:20:28 -05:00
parent bf3b0554dd
commit bffc202270
3 changed files with 40 additions and 12 deletions

View File

@@ -465,9 +465,9 @@ Rails.application.routes.draw do
end
end
get '/', to: 'about#show', as: :homepage
get '/', to: 'react#home', as: :homepage
get '/tags/:tag', to: 'react#react'
get '/g/:groupSlug', to: 'react#groupBySlug'
get '/:username/with_replies', to: 'accounts#show', username: username_regex, as: :short_account_with_replies
get '/:username/comments_only', to: 'accounts#show', username: username_regex, as: :short_account_comments_only
get '/:username/media', to: 'accounts#show', username: username_regex, as: :short_account_media