var express = require('express');
var router = express.Router({mergeParams: true});

router.route('/')
  .get(function(req, res) {
    res.json({ message: 'Hello there!' });
  });

router.route('/examples')
  .get(function(req, res) {
    res.json({ message: 'Some examples here please!' });
  });

module.exports = router;

@@ -74,24 +74,79 @@
 s: true%7D);%0A%0A
+var models = require('../database/sequelize/models');%0A%0A
 router.route
@@ -291,56 +291,254 @@
     
-res.json(%7B message: 'Some examples here please!'
+models.Example.findAll().then(function(examples) %7B%0A      res.json(examples);%0A    %7D);%0A  %7D);%0A%0Arouter.route('/examples/:id')%0A  .get(function(req, res) %7B%0A    models.Example.findById(req.params.id).then(function(example) %7B%0A      res.json(example);%0A   
  %7D);

Use Sequelize example models in REST api.