james
james
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
I just look the wrong port. Setup on server, but looking client. It is all fine now. Thank you so much
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
My fault, checking the wrong page
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
@martinsos
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');
const app = express();
const port = 3000;



// Proxy route to Docker service
app.use('/docker-service', createProxyMiddleware({ target: 'http://docker-service-host:docker-service-port', changeOrigin: true }));

app.listen(port, () => {
console.log(`Node.js app listening at http://localhost:${port}`);
});
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');
const app = express();
const port = 3000;



// Proxy route to Docker service
app.use('/docker-service', createProxyMiddleware({ target: 'http://docker-service-host:docker-service-port', changeOrigin: true }));

app.listen(port, () => {
console.log(`Node.js app listening at http://localhost:${port}`);
});
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
like this :
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
what I want to do is to create a custom route for me to handle,
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
I expected this should be a blank page response "I am a custom route" only, instead it show the nav bar and a blank background. and for every page the response is the same
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
No description
15 replies
WWasp-lang
Created by james on 2/13/2024 in #đŸ™‹questions
about custom route
No description
15 replies