Minor Adjustments
This commit is contained in:
parent
ba8e6ded26
commit
a90c28dd76
60 changed files with 8240 additions and 8 deletions
13
libold/server/routes/dev-route.js
Normal file
13
libold/server/routes/dev-route.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
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