forked from OpenWF/SpaceNinjaServer
17 lines
464 B
TypeScript
17 lines
464 B
TypeScript
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
|
|
]);
|
|
|
|
res.writeHead(200, {
|
|
"Content-Type": "text/html",
|
|
"Content-Length": data.length
|
|
});
|
|
res.end(data);
|
|
};
|
|
|
|
export { findSessionsController };
|