add start-script | cleanup

This commit is contained in:
lucaspalomodevelop 2022-03-02 18:55:07 +01:00
parent f8cd745a21
commit 8632c73d1d
3 changed files with 2 additions and 10 deletions

View File

@ -4,7 +4,8 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "mocha ./test/index.js"
"test": "mocha ./test/index.js",
"start":"node ./src/index.js"
},
"dependencies": {
"body-parser": "^1.19.2",

View File

@ -1,8 +1,6 @@
let conf = require("./helper/conf")();
// let jsste = require("./jsste")(conf);
let websrv = require("./websrv")(conf);
// console.log("jssteconfig", conf);
websrv.slisten((host, port) => {
console.log("Server started on http://" + host + ":" + port);

View File

@ -12,13 +12,6 @@ module.exports = function (conf) {
app.use(cookieParser());
app.use("/internal", internalRouter);
// app.get("/config", (req, res) => {
// // let files = [];
// // fs.readdirSync(conf.jsste.paths.files).forEach((file) => {
// // files.push(file);
// // });
// res.json(conf);
// });
app.slisten = function (cb) {