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

View File

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"build": "npx tsc", "build": "npx tsc",
"start": "node dist/index.js", "start": "node dist/index.js",
"dev": "nodemon --watch './**/*.ts' --exec node --experimental-specifier-resolution=node --loader ts-node/esm ./index.ts" "dev": "nodemon --watch './**/*.ts' --exec node --experimental-specifier-resolution=node --loader ts-node/esm ./src/index.ts"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

View File

@ -3,7 +3,7 @@ const app = express();
const PORT = 8000; const PORT = 8000;
// server-node: backend api // server-node: backend api
import api from './src/routes/api/api-controller'; import api from './routes/api/api-controller';
app.use("/api/", api); app.use("/api/", api);
// serve // serve

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 // // Allow option to do it synchronously and just make a long request
// if(req.body.async === "false") { // if(req.body.async === "false") {
// console.log("Don't do async"); // console.log("Don't do async");