Permalink
Browse files

Add gitignores, fix typo in comments controller, remove routes file

  • Loading branch information...
esthersweon committed Oct 20, 2017
1 parent 4abcb33 commit 8df0246ba67d33c0010e3178bc9cdc4ea9893f23
Showing with 3 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −0 back-end/.gitignore
  3. +1 −1 back-end/controllers/comments.js
  4. 0 front-end/src/config/routes.js
@@ -0,0 +1 @@
node_modules/
@@ -0,0 +1 @@
node_modules/
@@ -2,7 +2,7 @@ var models = require('../models');
var Comment = models.Comment;

function index(req, res) {
Comment.find({ post_id: req.query.post_id }, function(err, comments) {
Comment.find({ post_id: req.params.post_id }, function(err, comments) {
if (err) res.send(err);
else res.json(comments);
});
No changes.

0 comments on commit 8df0246

Please sign in to comment.