Skip to content

Commit

Permalink
support /braintrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 authored Nov 22, 2024
1 parent ff4ccc8 commit 7427e0e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions config/routes_new.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Rails.application.routes.draw do
# Define the common routes that should be available at both root and /braintrap paths
concern :braintrap_routes do
get "feed/index"
get "feed/line_annotation_xml"
get "feed/annotations_xml"
Expand Down Expand Up @@ -30,6 +32,18 @@
get "welcome/about"
get "welcome/index"
get "welcome/protocol"
get "up" => "rails/health#show", as: :rails_health_check
end

# Health check route
get "up" => "rails/health#show", as: :rails_health_check

# Root path routes
concerns :braintrap_routes
root "welcome#index"

# /braintrap path routes
scope path: '/braintrap' do
concerns :braintrap_routes
root "welcome#index"
end
end
end

0 comments on commit 7427e0e

Please sign in to comment.