Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Correções e mais correções
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlucss committed Aug 30, 2018
1 parent 2eb946a commit f9225b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/router/pad.js
Expand Up @@ -25,6 +25,8 @@ router.post('/send/:pad', (req,res) => {
fs.writeFile(`${CLOUD}src/pads/${req.params.pad}.json`, json, (err) => {
if (!err) {
res.send('deubom');
}else{
res.send(err)
}
});
});
Expand All @@ -36,6 +38,8 @@ router.get('/recovery/:pad', (req,res) => {
fs.writeFile(`${CLOUD}src/pads/${req.params.pad}.json`, JSON.stringify({ text: ''}), (err) => {
if (!err) {
res.send('deubom');
}else{
res.send(err)
}
});
}
Expand Down

0 comments on commit f9225b3

Please sign in to comment.