diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-02 18:39:28 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:21 +0200 |
| commit | f119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch) | |
| tree | bea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/api/routes/rooms.js | |
| parent | 7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff) | |
Add current progress on frontend port
Diffstat (limited to 'frontend/src/api/routes/rooms.js')
| -rw-r--r-- | frontend/src/api/routes/rooms.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/frontend/src/api/routes/rooms.js b/frontend/src/api/routes/rooms.js deleted file mode 100644 index f87d1298..00000000 --- a/frontend/src/api/routes/rooms.js +++ /dev/null @@ -1,46 +0,0 @@ -import { sendRequest } from '../index' -import { deleteById, getById } from './util' - -export function getRoom(roomId) { - return getById('/rooms/{roomId}', { roomId }) -} - -export function updateRoom(room) { - return sendRequest({ - path: '/rooms/{roomId}', - method: 'PUT', - parameters: { - body: { - room, - }, - path: { - roomId: room.id, - }, - query: {}, - }, - }) -} - -export function deleteRoom(roomId) { - return deleteById('/rooms/{roomId}', { roomId }) -} - -export function getTilesOfRoom(roomId) { - return getById('/rooms/{roomId}/tiles', { roomId }) -} - -export function addTileToRoom(tile) { - return sendRequest({ - path: '/rooms/{roomId}/tiles', - method: 'POST', - parameters: { - body: { - tile, - }, - path: { - roomId: tile.roomId, - }, - query: {}, - }, - }) -} |
