Skip to content

Commit

Permalink
oops. revert formatting change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Dec 30, 2024
1 parent f9cb115 commit 18c0036
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
end

# dev routes for cypress
if Rails.env.local?
if Rails.env.development? || Rails.env.test?
scope path: "/__cypress__", controller: "cypress" do
post "login", action: "login"
end
Expand Down Expand Up @@ -53,16 +53,16 @@
resources :urls do
get "datatable", to: "urls_datatable#index", on: :collection
get "keyword_filter/(:destination)/(:keyword)",
on: :collection,
to: "urls#keyword_filter",
as: "keyword_filter"
on: :collection,
to: "urls#keyword_filter",
as: "keyword_filter"
get "download_qrcode", to: "url_barcodes#show"
get "csv/click_data", to: "url_csvs#show"
get "csv/:duration/:time_unit", to: "url_csvs#show_aggregated"
get "csv/:duration/:time_unit",
on: :collection,
to: "url_csvs#show_aggregated",
as: "csv"
on: :collection,
to: "url_csvs#show_aggregated",
as: "csv"
member do
patch :note, to: 'urls#update_note'
end
Expand Down

0 comments on commit 18c0036

Please sign in to comment.