Worlds: language switch
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-09-06 16:34:21 +02:00
parent 699e1eb3de
commit 0912a9f408
7 changed files with 40 additions and 28 deletions

View File

@@ -83,12 +83,12 @@ Rails.application.routes.draw do
"/public/#{contest.friendly_id}/offline/#{offline.generate_token_for(:token)}/completed"
end
get "wjpc_bets", to: redirect("/wjpc_bets/main")
get "wjpc_bets/main", to: "worlds#main"
get "wjpc_bets/about", to: "worlds#about"
get "wjpc_bets/collaborative_filling", to: "worlds#collab"
get "wjpc_bets/new", to: "worlds#new"
post "wjpc_bets/new", to: "worlds#create"
patch "wjpc_bets/update/:participant_id", to: "worlds#update"
get "wjpc_bets/view/:bet_id", to: "worlds#view"
get "wjpc_bets", to: redirect("/wjpc_bets/fr/main")
get "wjpc_bets/:lang/main", to: "worlds#main"
get "wjpc_bets/:lang/about", to: "worlds#about"
get "wjpc_bets/:lang/collaborative_filling", to: "worlds#collab"
get "wjpc_bets/:lang/new", to: "worlds#new"
post "wjpc_bets/:lang/new", to: "worlds#create"
patch "wjpc_bets/:lang/update/:participant_id", to: "worlds#update"
get "wjpc_bets/:lang/view/:bet_id", to: "worlds#view"
end