(function () {
    'use strict';

    var dummyData = require('../dummy-data');

    module.exports = {
        route: {
            path: '/poi',
            method: 'GET',
            config: {
                handler: function (req, reply) {
                    reply(dummyData.createLocations(10));
                }
            }
        }
    };
}());

(function () {
    'use strict';

    var dummyData = require('../dummy-data');

    module.exports = {
        route: {
            path: '/poi',
            method: 'GET',
            config: {
                handler: function (req, reply) {
                    reply(dummyData.createLocations(req.query.numItems || 10));
                }
            }
        }
    };
}());

Use a query param to determine the number of items to render.
Use a query param to determine the number of items to render.
