From 656fc44fd8e5199d7ae116c812f49376bd8a6aaa Mon Sep 17 00:00:00 2001 From: Slavasil Date: Sun, 25 Oct 2026 17:21:49 +0300 Subject: [PATCH] remove outdated docs and routes --- main-server/API.md | 21 +-------------------- main-server/config/routes.rb | 4 +--- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/main-server/API.md b/main-server/API.md index 9baf09e..7862ca3 100644 --- a/main-server/API.md +++ b/main-server/API.md @@ -267,26 +267,7 @@ curl -X DELETE http://localhost:3000/api/logout \ ### Отмена поиска -Убирает игрока из очереди матчмейкинга. - -**URL:** `DELETE /api/matchmaking` - -**Auth:** требуется - -**Пример запроса:** - -```bash -curl -X DELETE http://localhost:3000/api/matchmaking \ - -H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9..." -``` - -**Успешный ответ (200 OK):** - -```json -{ - "message": "Matchmaking cancelled" -} -``` +Отмена поиска происходит через WebSocket: достаточно отключиться от `MatchmakingChannel` либо отправить `{ "action": "stop" }`. --- diff --git a/main-server/config/routes.rb b/main-server/config/routes.rb index 7a5044b..b0dc256 100644 --- a/main-server/config/routes.rb +++ b/main-server/config/routes.rb @@ -7,9 +7,7 @@ Rails.application.routes.draw do delete "logout", to: "sessions#destroy" get "me", to: "sessions#me" - delete "matchmaking", to: "matchmaking#destroy" - - # Matchmaking starts over the MatchmakingChannel WebSocket + # Matchmaking starts and stops over the MatchmakingChannel WebSocket # (see app/channels/matchmaking_channel.rb). end