add random match-making logic
This commit is contained in:
@@ -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
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user