const express = require('express');
const bodyParser = require('body-parser');
const mustache = require('express');
var html = `
`;
var app = express();
var server = require('http').createServer();
app.use(bodyParser.urlencoded({ extended: true }));
app.get('/', function(req, res, next) {
res.send(html);
});
app.post('/', function(req, res, next) {
var uid = req.body.uid;
if (uid) {
process.stdout.write(uid);
}
res.send('ok');
});
server.on('request', app);
server.listen(8191, function () {
process.stderr.write('tag-reader-dummy listening at http://localhost:8191');
})