Skip to content

Commit

Permalink
chore: clean up and comment the routes file
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Mar 25, 2024
1 parent 14b39b6 commit 3ce94f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", :as => :rails_health_check

draw :development if Rails.env.development?
# => KIQR core routes
# These routes are required for the KIQR core to function properly.
# Do not remove or modify these routes unless you know what you're doing.
draw :development
draw :authentication

# Define the routes for the application.
# => Application routes
# Routes inside this block will be prefixed with /team/<team_id> if
# the user is signed in to a team account. Otherwise, they won't be prefixed at all.'
# the user is signed in to a team account. Otherwise, they won't be prefixed at all.
scope "(/team/:account_id)", account_id: %r{[^/]+} do
get "dashboard" => "dashboard#show"
end
Expand Down
4 changes: 3 additions & 1 deletion config/routes/development.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
mount LetterOpenerWeb::Engine, at: "/letter_opener"
if Rails.env.development?
mount LetterOpenerWeb::Engine, at: "/letter_opener"
end

0 comments on commit 3ce94f0

Please sign in to comment.