vn-cc-vmp/index.js

22 lines
644 B
JavaScript
Raw Normal View History

2017-04-10 08:56:51 +00:00
var server = require("./server");
var router = require("./router");
var requestHandlers = require("./requestHandlers");
var handle = {}
handle["/"] = requestHandlers.iniciar;
handle["/iniciar"] = requestHandlers.iniciar;
handle["/subir"] = requestHandlers.subir;
handle["/xml"] = requestHandlers.xml;
server.iniciar(router.route, handle);
/*var fs = require('fs');
var xml2js = require('xml2js');
var parser = new xml2js.Parser();
fs.readFile(__dirname + 'xml_buyer/supplyrequest_getall.xml', function(err, data) {
parser.parseString(data, function (err, result) {
console.dir(result);
console.log('Done');
});
});*/