SpaceNinjaServer/src/controllers/api/deleteSessionController.ts

10 lines
287 B
TypeScript
Raw Normal View History

2023-06-01 17:08:05 -07:00
import { RequestHandler } from "express";
2023-06-03 17:55:19 -07:00
import { deleteSession } from "@/src/managers/sessionManager";
2023-06-01 17:08:05 -07:00
const deleteSessionController: RequestHandler = (_req, res) => {
deleteSession(_req.query.sessionId as string);
res.sendStatus(200);
2023-06-01 17:08:05 -07:00
};
export { deleteSessionController };