error codes and updated mock room id

This commit is contained in:
AtHeartEngineer
2023-07-25 00:18:05 -04:00
parent 37d3c84ddf
commit 0b1da3dcef
2 changed files with 3 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ export default function Mock(io: SocketIOServer) {
setInterval(() => {
const message: MessageI = {
id: faker.number.bigInt().toString(),
room: BigInt('7458174823225695762087107782399226439860424529052640186229953289032606624581'),
room: BigInt('19183659077143681680643781146130632794891748840418536690687883939418258252592'),
message: picker.pick(),
timestamp: Date.now().toString(),
epoch: Math.floor(Date.now() / 10000)

View File

@@ -168,6 +168,7 @@ export function initExpressEndpoints(
}
res.status(201).json({ status: `Created group ${groupName}`, loadedRooms });
}
res.status(401).json({ status: 'Unauthorized' });
});
app.post('/room/add', (req, res) => {
@@ -180,6 +181,7 @@ export function initExpressEndpoints(
res.status(201).json({ status: `Created room ${roomName}`, roomGroups });
});
}
res.status(401).json({ status: 'Unauthorized' });
});
app.post('/group/createcode', (req, res) => {