SpaceNinjaServer/src/controllers/api/updateSessionController.ts
Ordis 4ab0e59321
All checks were successful
Build / build (20) (push) Successful in 55s
Build / build (18) (push) Successful in 38s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 55s
Build / build (22) (push) Successful in 1m20s
Build / build (22) (pull_request) Successful in 36s
remove console logs
2025-02-07 13:51:42 +01:00

14 lines
566 B
TypeScript

import { RequestHandler } from "express";
import { updateSession } from "@/src/managers/sessionManager";
const updateSessionGetController: RequestHandler = (_req, res) => {
res.json({});
};
const updateSessionPostController: RequestHandler = (_req, res) => {
//console.log("UpdateSessions POST Request:", JSON.parse(String(_req.body)));
//console.log("ReqID:", _req.query.sessionId as string);
updateSession(_req.query.sessionId as string, String(_req.body));
res.json({});
};
export { updateSessionGetController, updateSessionPostController };