This commit is contained in:
Flummi 2025-03-25 13:57:07 +01:00
parent 8dcb0d5e09
commit 766fd0b517

View File

@ -133,7 +133,7 @@ export default class Flummpress {
return res.writeHead(code);
};
res.json = (body: JSON, code = 200) => {
res.json = (body: any, code = 200) => {
res.reply({ code, type: "application/json", body: JSON.stringify(body) });
};