We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558e0c7 commit c6c8f1fCopy full SHA for c6c8f1f
server.js
@@ -25,6 +25,7 @@ app.use(bodyParser.urlencoded({extended: true}));
25
app.get('/comments.json', function(req, res) {
26
res.setHeader('Content-Type', 'application/json');
27
res.send(JSON.stringify(comments));
28
+ comments = JSON.parse(fs.readFileSync('_comments.json'));
29
});
30
31
app.post('/comments.json', function(req, res) {
0 commit comments