var express = require('express');
var router = express.Router();
var Beer = require('../models/beer');

/* GET home page. */
router.get('/', function(req, res) {
  res.render('index', { title: 'Express', message: 'Hello Worlds Out There!' });
});

router.route('/beers')
    .post(function(req, res) {
        var beer = new Beer();
        beer.name = req.body.name;
        
        beer.save(function(err) {
            if (err)
                res.send(err);
                
            res.json({message: 'Beer Created'});
        });
    
    
    });

module.exports = router;
@@ -540,24 +540,216 @@
 ;%0A    %0A    %0A
+    %7D)%0A    %0A    .get(function(req, res) %7B%0A        Beer.find(function(err, beers) %7B%0A            if (err) %7B%0A                res.send(err);%0A            %7D%0A            res.json(beers);%0A        %7D);%0A
     %7D);%0A%0Amod

add get - find to router for endpoint