Merge remote-tracking branch 'parent/main' into upstream-20241209

This commit is contained in:
KMY 2024-12-09 17:49:49 +09:00
commit 6b6f145633
28 changed files with 571 additions and 324 deletions

View file

@ -16,43 +16,6 @@ def redirect_with_vary(path)
end
Rails.application.routes.draw do
# Paths of routes on the web app that to not require to be indexed or
# have alternative format representations requiring separate controllers
web_app_paths = %w(
/getting-started
/keyboard-shortcuts
/home
/public
/public/local
/public/local/fixed
/public/remote
/conversations
/lists/(*any)
/antennas/(*any)
/circles/(*any)
/links/(*any)
/notifications/(*any)
/notifications_v2/(*any)
/favourites
/emoji_reactions
/bookmarks
/bookmark_categories/(*any)
/pinned
/reaction_deck
/start/(*any)
/directory
/explore/(*any)
/search
/publish
/follow_requests
/blocks
/domain_blocks
/mutes
/followed_tags
/statuses/(*any)
/deck/(*any)
).freeze
root 'home#index'
mount LetterOpenerWeb::Engine, at: 'letter_opener' if Rails.env.development?
@ -236,9 +199,7 @@ Rails.application.routes.draw do
draw(:api)
web_app_paths.each do |path|
get path, to: 'home#index'
end
draw(:web_app)
get '/web/(*any)', to: redirect('/%{any}', status: 302), as: :web, defaults: { any: '' }, format: false
get '/about', to: 'about#show'