hopefully we good now

This commit is contained in:
Ordis 2023-06-04 02:32:35 +02:00
parent 2c1261b3c4
commit a4cd721a6a
2 changed files with 4 additions and 9 deletions

View File

@ -1,16 +1,9 @@
import { RequestHandler } from "express";
const findSessionsController: RequestHandler = (_req, res) => {
const data = Buffer.from([
0x7b, 0x22, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x64, 0x22, 0x3a, 0x31, 0x2c, 0x22, 0x53, 0x65, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3a, 0x5b, 0x5d, 0x7d
]);
console.log("FindSession Request:", JSON.parse(_req.body));
res.writeHead(200, {
"Content-Type": "text/html",
"Content-Length": data.length
});
res.end(data);
res.json({ sessionId: { $oid: "64768f104722f795300c9fc0" }, rewardSeed: 5867309943877621023 });
};
export { findSessionsController };

View File

@ -1,6 +1,8 @@
import { RequestHandler } from "express";
const hostSessionController: RequestHandler = (_req, res) => {
console.log("HostSession Request:", JSON.parse(_req.body));
res.json({ sessionId: { $oid: "64768f104722f795300c9fc0" }, rewardSeed: 5867309943877621023 });
};