new(core.gbapp): New API endpoint.

This commit is contained in:
Rodrigo Rodriguez 2024-04-17 10:54:59 -03:00
parent e9bc386d48
commit baa9f608e6

View file

@ -256,8 +256,9 @@ export class GBServer {
const host = req.headers.host;
// Roteamento com base no domínio.
if (host === process.env.API_HOST) {
GBLog.info(`Redirecting to API...`);
return httpProxy.web(req, res, { target: 'http://localhost:1111' }); // Express server
}