fix(api-gateway): proxy endpoint for request passing

This commit is contained in:
Karol Sójko
2023-02-22 13:19:17 +01:00
parent 91c70a51a0
commit bc9182f214
@@ -13,6 +13,6 @@ export class ProxyController extends BaseHttpController {
@all('*', TYPES.AuthMiddleware)
async createToken(request: Request, response: Response): Promise<void> {
await this.httpService.callProxyServer(request, response, '/', request.body)
await this.httpService.callProxyServer(request, response, request.path.replace('/v1/proxy', ''), request.body)
}
}