fix(core): update

This commit is contained in:
2024-02-20 17:30:46 +01:00
parent a7ddb6b6a8
commit ca3b8a4580
20 changed files with 24 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
import * as plugins from '../typedserver.plugins.js';
import * as plugins from '../plugins.js';
import { Handler } from './classes.handler.js';
import * as interfaces from '../interfaces/index.js';
@@ -11,7 +11,7 @@ export class HandlerTypedRouter extends Handler {
constructor(typedrouter: plugins.typedrequest.TypedRouter) {
super('POST', async (req, res) => {
const response = await typedrouter.routeAndAddResponse(req.body);
res.json(response);
res.json(plugins.smartjson.stringify(response));
});
}
}