feat: Get json dataset from stream, convert into NudgerData, start to implement DMN concepts

This commit is contained in:
Lucàs
2024-10-02 20:37:44 +02:00
parent ffc1ad3e84
commit 4c92b856c0
53 changed files with 1234 additions and 73 deletions
+17
View File
@@ -0,0 +1,17 @@
import { NextFunction, Request, Response } from "express";
export default function (req: Request, res: Response, next: NextFunction) {
if (req.is("application/xml")) {
let data = "";
req.setEncoding("utf8");
req.on("data", (chunk: any) => {
data += chunk;
});
req.on("end", () => {
req.body = data;
next();
});
} else {
next();
}
}