Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => ejs.renderFileAsync(MHUB_FILE_TEMPLATE, options))
.then(content => fs.writeFileAsync(configFile, content))
const ssh = async ctx => {
ctx.body = await ejs.renderFileAsync("./client/ssh.html", _getCfg(ctx, "SSH Keys"));
};
.then(() => ejs.renderFileAsync(CADDY_FILE_TEMPLATE, {
sites,
envDir: CADDY_ENV_DIR
}))
.then(content => fs.writeFileAsync(caddyFile, content))
const mycase = async ctx => {
ctx.body = await ejs.renderFileAsync("./client/mycase.html", _getCfg(ctx, "My Showcase"));
};
const allcase = async ctx => {
const index = async ctx => {
ctx.body = await ejs.renderFileAsync("./client/index.html", _getCfg(ctx, "Status"));
};
const mycase = async ctx => {
const allcase = async ctx => {
ctx.body = await ejs.renderFileAsync("./client/allcase.html", _getCfg(ctx, "All Showcase"));
};
const ssh = async ctx => {