moved index to src

This commit is contained in:
Felix Kaspar
2023-11-13 00:29:00 +01:00
parent 5ae8cb77ac
commit d2a7ef921b
3 changed files with 3 additions and 2 deletions

12
server-node/src/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import express from 'express';
const app = express();
const PORT = 8000;
// server-node: backend api
import api from './routes/api/api-controller';
app.use("/api/", api);
// serve
app.listen(PORT, () => {
console.log(`http://localhost:${PORT}`);
});

View File

@@ -33,6 +33,7 @@ router.post("/:workflowUuid?", [
}
}));
// TODO: Enable if traverse & organize migration is done.
// // Allow option to do it synchronously and just make a long request
// if(req.body.async === "false") {
// console.log("Don't do async");