Add /connect route
All checks were successful
CI / scan_ruby (push) Successful in 17s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 26s

This commit is contained in:
sto
2025-06-21 18:00:06 +02:00
parent 6fb5ba5f3e
commit ef3c63ea67
2 changed files with 28 additions and 5 deletions

View File

@@ -24,7 +24,9 @@ Rails.application.routes.draw do
resource :session
resources :users
options "connect", to: "messages#cors_preflight_check"
options "message", to: "messages#cors_preflight_check"
post "connect", to: "messages#connect"
post "message", to: "messages#create"
get "public/:id", to: "contests#scoreboard"