2023-05-19 15:22:48 -03:00
|
|
|
import { Request, Response } from "express";
|
|
|
|
|
2025-03-19 20:38:14 +01:00
|
|
|
// POST with {} instead of GET as of 38.5.0
|
2024-12-29 21:47:18 +01:00
|
|
|
const getFriendsController = (_request: Request, response: Response): void => {
|
2023-05-23 20:42:06 -04:00
|
|
|
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]));
|
2023-05-19 15:22:48 -03:00
|
|
|
};
|
2023-06-02 00:20:49 -03:00
|
|
|
|
|
|
|
export { getFriendsController };
|