new(core.gbapp): New API endpoint.

This commit is contained in:
Rodrigo Rodriguez 2024-04-17 10:54:59 -03:00
parent 4ced6b667c
commit f830b01ac9

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
}