SpaceNinjaServer/src/controllers/api/logoutController.ts

13 lines
299 B
TypeScript
Raw Normal View History

2023-06-01 17:08:05 -07:00
import { RequestHandler } from "express";
const logoutController: RequestHandler = (_req, res) => {
2023-06-02 00:20:49 -03:00
const data = Buffer.from([0x31]);
2023-06-01 17:08:05 -07:00
res.writeHead(200, {
"Content-Type": "text/html",
"Content-Length": data.length
});
2023-06-02 00:20:49 -03:00
res.end(data);
2023-06-01 17:08:05 -07:00
};
2023-06-02 00:20:49 -03:00
export { logoutController };