Created
October 28, 2015 16:36
-
-
Save devalexandre/5fc4696be02ce214ae0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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