While we ping some search engines (currently, only Google) when generating the sitemap files, we weren't telling search engines accessing through the `robots.txt` file where to find the sitemap. Now we're doing so, using the right sitemap file for the right tenant.
49 lines
1.3 KiB
Ruby
49 lines
1.3 KiB
Ruby
Rails.application.routes.draw do
|
|
mount Ckeditor::Engine => "/ckeditor"
|
|
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
|
|
|
|
draw :account
|
|
draw :admin
|
|
draw :budget
|
|
draw :comment
|
|
draw :community
|
|
draw :debate
|
|
draw :devise
|
|
draw :direct_upload
|
|
draw :document
|
|
draw :graphql
|
|
draw :legislation
|
|
draw :management
|
|
draw :moderation
|
|
draw :notification
|
|
draw :officing
|
|
draw :poll
|
|
draw :proposal
|
|
draw :related_content
|
|
draw :sdg
|
|
draw :sdg_management
|
|
draw :tag
|
|
draw :user
|
|
draw :valuation
|
|
draw :verification
|
|
|
|
root "welcome#index"
|
|
get "/welcome", to: "welcome#welcome"
|
|
get "/consul.json", to: "installation#details"
|
|
get "robots.txt", to: "robots#index"
|
|
|
|
resources :stats, only: [:index]
|
|
resources :images, only: [:destroy]
|
|
resources :documents, only: [:destroy]
|
|
resources :follows, only: [:create, :destroy]
|
|
resources :remote_translations, only: [:create]
|
|
|
|
# More info pages
|
|
get "help", to: "pages#show", id: "help/index", as: "help"
|
|
get "help/how-to-use", to: "pages#show", id: "help/how_to_use/index", as: "how_to_use"
|
|
get "help/faq", to: "pages#show", id: "faq", as: "faq"
|
|
|
|
# Static pages
|
|
resources :pages, path: "/", only: [:show]
|
|
end
|