.
This commit is contained in:
1 parent
8dcb0d5e09
commit
766fd0b517
1 file changed
+1
-1
+1
-1
@@ -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) });
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user