remove outdated docs and routes
This commit is contained in:
+1
-20
@@ -267,26 +267,7 @@ curl -X DELETE http://localhost:3000/api/logout \
|
|||||||
|
|
||||||
### Отмена поиска
|
### Отмена поиска
|
||||||
|
|
||||||
Убирает игрока из очереди матчмейкинга.
|
Отмена поиска происходит через WebSocket: достаточно отключиться от `MatchmakingChannel` либо отправить `{ "action": "stop" }`.
|
||||||
|
|
||||||
**URL:** `DELETE /api/matchmaking`
|
|
||||||
|
|
||||||
**Auth:** требуется
|
|
||||||
|
|
||||||
**Пример запроса:**
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -X DELETE http://localhost:3000/api/matchmaking \
|
|
||||||
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9..."
|
|
||||||
```
|
|
||||||
|
|
||||||
**Успешный ответ (200 OK):**
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"message": "Matchmaking cancelled"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ Rails.application.routes.draw do
|
|||||||
delete "logout", to: "sessions#destroy"
|
delete "logout", to: "sessions#destroy"
|
||||||
get "me", to: "sessions#me"
|
get "me", to: "sessions#me"
|
||||||
|
|
||||||
delete "matchmaking", to: "matchmaking#destroy"
|
# Matchmaking starts and stops over the MatchmakingChannel WebSocket
|
||||||
|
|
||||||
# Matchmaking starts over the MatchmakingChannel WebSocket
|
|
||||||
# (see app/channels/matchmaking_channel.rb).
|
# (see app/channels/matchmaking_channel.rb).
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user