customer.route.js 628 Bytes
var env = process.env.NODE_ENV || 'development'; 
var cfg = require('../../config/config.js').get(env);

module.exports = function (app) {
    var customerCtrl = app.modules.customer.customerCtrl;
    var postCustomerCtrl = app.modules.customer.postCustomerCtrl;

    app.get(cfg.service.CMF.GET_Customer_URL[0],
        customerCtrl.customer
    );

    app.get(cfg.service.CMF.GET_Customer_URL[1],
        customerCtrl.customer
    );

    app.get(cfg.service.CMF.GET_Customer_URL[2],
        customerCtrl.customer
    );
    
    app.post(cfg.service.CMF.POST_Customer_URL[0],
        postCustomerCtrl.postCustomer
    );
};