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
14 lines
566 B
TypeScript
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 };
|