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": {
"build": "npx tsc",
"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": [],
"author": "",

View File

@ -3,7 +3,7 @@ const app = express();
const PORT = 8000;
// server-node: backend api
import api from './src/routes/api/api-controller';
import api from './routes/api/api-controller';
app.use("/api/", api);
// 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
// if(req.body.async === "false") {
// console.log("Don't do async");