diff --git a/index.js b/index.js index 553a0e3c..4b481d9c 100644 --- a/index.js +++ b/index.js @@ -49,6 +49,7 @@ app.use("/delete_logs", require("".concat(__dirname, "/routes/delete_logs"))); app.use("/npm_install", require("".concat(__dirname, "/routes/npm_install"))); app.use("/create_file", require("".concat(__dirname, "/routes/create_file"))); app.use("/update_main", require("".concat(__dirname, "/routes/update_main"))); +app.use("/update_file", require("".concat(__dirname, "/routes/update_file"))); app.use("/upload_file", require("".concat(__dirname, "/routes/upload_file"))); app.use("/delete_[ath]", require("".concat(__dirname, "/routes/delete_logs"))); app.use("/file_content", require("".concat(__dirname, "/routes/file_content"))); diff --git a/modules/InsertBase.js b/modules/InsertBase.js index 587f6c1b..7b1d3387 100644 --- a/modules/InsertBase.js +++ b/modules/InsertBase.js @@ -38,7 +38,7 @@ module.exports = function InsertBase(path_name, main_entry) { fs.writeFile("./".concat(process.env.SECRET_PATH, "/").concat(path_name, "/package.json"), JSON.stringify(PackageJsonBase, null, 4), function (err) { if (err) return console.error(err); - fs.copyFile("./template/readme.md", Readme, function (err) { + fs.copyFile("./template/README.md", Readme, function (err) { if (err) throw err; Terminal("cd ./".concat(process.env.SECRET_PATH, "/").concat(path_name, " && npm install"))