add random match-making logic

This commit is contained in:
2026-09-21 22:40:35 +03:00
parent 30cf8c7215
commit 7db58e42ab
7 changed files with 163 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
# Redis configuration
# Development/test: localhost:6379 (default)
# Production: set REDIS_URL env variable, e.g. redis://redis.example.com:6379/0
RedisConnection = ConnectionPool.new(size: 5, timeout: 5) do
Redis.new(url: ENV.fetch("REDIS_URL", "redis://localhost:6380/0"))
end
+3
View File
@@ -4,6 +4,9 @@ Rails.application.routes.draw do
post "login", to: "sessions#create"
delete "logout", to: "sessions#destroy"
get "me", to: "sessions#me"
post "matchmaking", to: "matchmaking#create"
delete "matchmaking", to: "matchmaking#destroy"
end
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.