diff --git a/src/controllers/api/findSessionsController.ts b/src/controllers/api/findSessionsController.ts index f749f00a..32b1cf33 100644 --- a/src/controllers/api/findSessionsController.ts +++ b/src/controllers/api/findSessionsController.ts @@ -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 }; diff --git a/src/controllers/api/hostSessionController.ts b/src/controllers/api/hostSessionController.ts index 78d4f395..bbeb8eb7 100644 --- a/src/controllers/api/hostSessionController.ts +++ b/src/controllers/api/hostSessionController.ts @@ -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 }); };