SpaceNinjaServer/src/controllers/api/getFriendsController.ts
Sainan 6eebf0aa84
All checks were successful
Build / build (18) (push) Successful in 42s
Build / build (20) (push) Successful in 1m4s
Build / build (22) (push) Successful in 56s
Build Docker image / docker (push) Successful in 30s
chore: update request handling for 38.5.0
2025-03-19 20:38:14 +01:00

16 lines
468 B
TypeScript

import { Request, Response } from "express";
// POST with {} instead of GET as of 38.5.0
const getFriendsController = (_request: Request, response: Response): void => {
response.writeHead(200, {
//Connection: "keep-alive",
//"Content-Encoding": "gzip",
"Content-Type": "text/html",
// charset: "UTF - 8",
"Content-Length": "3"
});
response.end(Buffer.from([0x7b, 0x7d, 0x0a]));
};
export { getFriendsController };