<reponame>borges-boss/bait-proxy<filename>app.js<gh_stars>0const express = require("express");
const morgan = require("morgan");
const simwMap = require("./api/simw/v1/simw-map-v1"); 
const wpMessagerMap = require('./api/wpmessager/v1/wpmessager-map-v1')
const { createProxyMiddleware } = require("http-proxy-middleware");
const PORT = 80;
const HOST = "172.16.17.32";

const app = express();
// Logging the requests
app.use(morgan("dev"));
//Intranet
app.use(simwMap);
//Mensageria
app.use(wpMessagerMap);

//Start Proxy
app.listen(PORT, () => {
  console.log(`Starting Proxy at ${HOST}:${PORT}`);
});
