include-adm-zip #37

Closed
are0h wants to merge 28 commits from refs/pull/37/head into develop
Showing only changes of commit 919061d734 - Show all commits

View file

@ -206,13 +206,15 @@ router.post('/init', function (req, res) {
'---\n' +
index.content;
fs.writeFile('content/pages/index.md', init)
.then(() => {
console.log('index file created');
})
.catch(err => {
console.log('ERROR', err);
});
fs.ensureDir('content/pages/').then(() => {
fs.writeFile('content/pages/index.md', init)
.then(() => {
//console.log('index file created');
})
.catch(() => {
//console.log('ERROR', err);
});
});
});
res.json({