Skip to content

Commit

Permalink
WIP update calendars routing
Browse files Browse the repository at this point in the history
  • Loading branch information
BeckaL committed Jun 23, 2023
1 parent bc4a931 commit 2e26ab3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@

get "/gwyliau-banc", to: "calendar#show_calendar", defaults: { scope: "gwyliau-banc", locale: :cy }
get "/gwyliau-banc/:division", to: "calendar#division", defaults: { scope: "gwyliau-banc", locale: :cy }

constraints FormatRoutingConstraint.new("calendar") do
get ":scope", to: "calendar#show_calendar", as: :calendar
get ":scope/:division", to: "calendar#division", as: :division
end
get "/bank-holidays", to: "calendar#show_calendar", defaults: { scope: "gwyliau-banc", locale: :cy }
get "/bank-holidays/:division", to: "calendar#division", defaults: { scope: "gwyliau-banc", locale: :cy }
get "/when-do-the-clocks-change", to: "calendar#show_calendar", defaults: { scope: "gwyliau-banc", locale: :cy }
get "/when-do-the-clocks-change/:division", to: "calendar#division", defaults: { scope: "gwyliau-banc", locale: :cy }

get "/government/uploads/system/uploads/attachment_data/file/:id/:filename.csv/preview", to: "csv_preview#show", filename: /[^\/]+/

Expand Down

0 comments on commit 2e26ab3

Please sign in to comment.