'use strict';

var config = require('./config'),
    express = require('express'),
    bodyParser = require('body-parser');

module.exports = function() {
    var app = express();

    app.use(bodyParser.urlencoded({
        extended: true
    }));

    app.use(bodyParser.json());

    //  Require routes:
    //  E.g. require('../app/routes/example.server.routes.js')(app);
	require('../app/routes/example.server.routes.js')(app);

    app.use(express.static('./public'));

    return app;
};
