forked from projects/fipamo
patched auth chang drom develop
This commit is contained in:
parent
accb8b4ab1
commit
919061d734
1 changed files with 9 additions and 7 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue