patched auth chang drom develop

This commit is contained in:
Ro 2020-07-20 13:07:21 -07:00
parent accb8b4ab1
commit 919061d734

View file

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