first commit
This commit is contained in:
18
calcom/apps/api/index.js
Normal file
18
calcom/apps/api/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const http = require("http");
|
||||
const connect = require("connect");
|
||||
const { createProxyMiddleware } = require("http-proxy-middleware");
|
||||
|
||||
const apiProxyV1 = createProxyMiddleware({
|
||||
target: "http://localhost:3003",
|
||||
});
|
||||
|
||||
const apiProxyV2 = createProxyMiddleware({
|
||||
target: "http://localhost:3004",
|
||||
});
|
||||
|
||||
const app = connect();
|
||||
app.use("/", apiProxyV1);
|
||||
|
||||
app.use("/v2", apiProxyV2);
|
||||
|
||||
http.createServer(app).listen(3002);
|
||||
Reference in New Issue
Block a user