ember-introjs
Version:
An Ember Component for intro.js
20 lines (16 loc) • 404 B
JavaScript
;
const http = require('http');
class ProxyServer {
constructor() {
this.called = false;
this.lastReq = null;
this.httpServer = http.createServer((req, res) => {
this.called = true;
this.lastReq = req;
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('okay');
});
this.httpServer.listen(3001);
}
}
module.exports = ProxyServer;