22 lines
644 B
JavaScript
22 lines
644 B
JavaScript
|
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');
|
||
|
});
|
||
|
});*/
|