Spaces:
Runtime error
Runtime error
File size: 327 Bytes
db5855f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
var express = require('express');
var proxy = require('http-proxy-middleware');
var logger = require('../logger');
module.exports = function(app, prefix) {
var router = express.Router();
router.use(proxy(prefix, {
target: 'http://127.0.0.1:8081',
ws: true
}));
return router;
}
|