Sha256: 9352d707d5e983a4268e8f5615921dcc2a88a8e71c2306a306e1703986011ab5

Contents?: true

Size: 699 Bytes

Versions: 87

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

# Some safety-net routes in case we happen to fall through the above routes without a match.
# For example, redirect to the HD dashboard if they hit just /hd/
# In theory we should only ever hit these routes if the user manually edits/enters the URL.
get "/patients/:id/hd", to: redirect("/patients/%{id}/hd/dashboard")
get "/patients/:id/pd", to: redirect("/patients/%{id}/pd/dashboard")
get "/patients/:id/transplants", to: redirect("/patients/%{id}")
get "/patients/:id/transplants/donor",
    to: redirect("/patients/%{id}/transplants/donor/dashboard")
get "/patients/:id/transplants/recipient",
    to: redirect("/patients/%{id}/transplants/recipient/dashboard")

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
renalware-core-2.1.1 config/routes/fallbacks.rb
renalware-core-2.1.0 config/routes/fallbacks.rb
renalware-core-2.0.167 config/routes/fallbacks.rb
renalware-core-2.0.166 config/routes/fallbacks.rb
renalware-core-2.0.165 config/routes/fallbacks.rb
renalware-core-2.0.164 config/routes/fallbacks.rb
renalware-core-2.0.163 config/routes/fallbacks.rb
renalware-core-2.0.162 config/routes/fallbacks.rb
renalware-core-2.0.161 config/routes/fallbacks.rb
renalware-core-2.0.160 config/routes/fallbacks.rb
renalware-core-2.0.159 config/routes/fallbacks.rb
renalware-core-2.0.158 config/routes/fallbacks.rb
renalware-core-2.0.157 config/routes/fallbacks.rb
renalware-core-2.0.156 config/routes/fallbacks.rb
renalware-core-2.0.155 config/routes/fallbacks.rb
renalware-core-2.0.153 config/routes/fallbacks.rb
renalware-core-2.0.152 config/routes/fallbacks.rb
renalware-core-2.0.151 config/routes/fallbacks.rb
renalware-core-2.0.149 config/routes/fallbacks.rb
renalware-core-2.0.148 config/routes/fallbacks.rb