33 lines
737 B
JavaScript
33 lines
737 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const port = 3434;
|
|
|
|
|
|
app.get('/v2/broadway/cards', (req, res) => {
|
|
|
|
console.log('-+-+-+-+-+-+-+-');
|
|
console.log('originalUrl', req.originalUrl);
|
|
console.log('Headers', req.headers);
|
|
console.log('query', req.query);
|
|
console.log('\n\n\n');
|
|
|
|
res.set('Content-Type', 'text/xml');
|
|
res.send("<BEGIN_OBJECT></BEGIN_OBJECT>")
|
|
});
|
|
|
|
|
|
|
|
|
|
app.get('*', (req, res) => {
|
|
|
|
console.log('-+-+-+-+-+-+-+-');
|
|
console.log('originalUrl', req.originalUrl);
|
|
console.log('Headers', req.headers);
|
|
console.log('query', req.query);
|
|
console.log('\n\n\n');
|
|
|
|
res.send("LvnvxRvdbc")
|
|
});
|
|
|
|
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
|