Skip to content

Instantly share code, notes, and snippets.

@devalexandre
Created October 28, 2015 16:36
Show Gist options
  • Select an option

  • Save devalexandre/5fc4696be02ce214ae0d to your computer and use it in GitHub Desktop.

Select an option

Save devalexandre/5fc4696be02ce214ae0d to your computer and use it in GitHub Desktop.
var express = require('express');
var router = express.Router();
var Poemas = require('../models/poemas');
/* GET home page. */
app.get('/', function (req, res) {
Poemas.find({}, function (err, docs) {
res.json(Poemas);
});
});
module.exports = router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment