0
0
Fork 0

Extract SPA-handled routes to stand-alone file (#33190)

This commit is contained in:
Matt Jankowski 2024-12-07 02:46:34 -05:00 committed by GitHub
parent 72a4da83fd
commit 58c40caeb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 34 deletions

34
config/routes/web_app.rb Normal file
View file

@ -0,0 +1,34 @@
# frozen_string_literal: true
# Paths handled by the React application, which do not:
# - Require indexing
# - Have alternative format representations
%w(
/blocks
/bookmarks
/conversations
/deck/(*any)
/directory
/domain_blocks
/explore/(*any)
/favourites
/follow_requests
/followed_tags
/getting-started
/home
/keyboard-shortcuts
/links/(*any)
/lists/(*any)
/mutes
/notifications_v2/(*any)
/notifications/(*any)
/pinned
/public
/public/local
/public/remote
/publish
/search
/start/(*any)
/statuses/(*any)
).each { |path| get path, to: 'home#index' }