Revamp Job flow
This commit is contained in:
parent
945afdfbbe
commit
4a0a4b29a5
86 changed files with 592 additions and 608 deletions
|
@ -1,13 +0,0 @@
|
|||
import { Router, json as jsonMiddleware } from "express";
|
||||
import TestResultsWorker from "../rabbit/workers/TestResultsWorker.js";
|
||||
|
||||
export default function buildDevRoute(pg, skio) {
|
||||
const router = Router();
|
||||
router.use(jsonMiddleware());
|
||||
router.post("/rabbit/TestResults", (req, res) => {
|
||||
const { testResult } = req.body;
|
||||
new TestResultsWorker(skio).onMessage(testResult);
|
||||
res.sendStatus(200);
|
||||
});
|
||||
return router;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue