Skip to content

sla6ak/LostSpace-server

Repository files navigation

lost space PORT=5000 DB_HOST="mongodb+srv://Viktor:slabak997@lostspase.c7fo1s0.mongodb.net/?retryWrites=true&w=majority&appName=LostSpase" JWT_SECRET_KEY="Иегова мой Бог на него уповаю" PUBLIC_API_URL="https://lostspace-server.onrender.com" PUBLIC_WS_URL="wss://lostspace-server.onrender.com" FRONTEND_URL="https://lost-space.vercel.app/" https://cloud.mongodb.com/v2/6292c3527b5c592a6d0f8bcd#/metrics/replicaSet/683855d3c67f91379e26cac3/explorer/test/users/find

редис

https://console.upstash.com/redis?teamid=0

  1. Создание боя

POST /api/battle/create Content-Type: application/json

{ "player1Id": "user1", "player2Id": "user2" }

  1. Получить бой

GET /api/battle/665ffe30b8d1f2fa3c0bd20f

  1. Отправить ход игрока

POST /api/battle/665ffe30b8d1f2fa3c0bd20f/turn Content-Type: application/json

{ "playerId": "user1", "actions": [ { "fromRobotId": "r1", "toRobotId": "r8" } ] }

Releases

No releases published

Packages

 
 
 

Contributors