From 0039de3499a40dad5af5346013d71ecec0ac8fac Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 6 Oct 2025 21:54:08 +0300 Subject: [PATCH] Update proxy controller and environment variable for cache-proxy service - Changed the route prefix of the ProxyController from `/proxy` to `/api` to align with the new API structure. - Updated the default value of the `URL_GRAPHQL_CACHED` environment variable to reflect the new route, ensuring proper integration with the GraphQL service. --- apps/cache-proxy/src/proxy/proxy.controller.ts | 2 +- packages/graphql/config/env.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cache-proxy/src/proxy/proxy.controller.ts b/apps/cache-proxy/src/proxy/proxy.controller.ts index c68f798..bfee78a 100644 --- a/apps/cache-proxy/src/proxy/proxy.controller.ts +++ b/apps/cache-proxy/src/proxy/proxy.controller.ts @@ -22,7 +22,7 @@ type RedisStore = Omit & { set: (key: string, value: unknown, { ttl }: { ttl: number }) => Promise; }; -@Controller('proxy') +@Controller('api') export class ProxyController { constructor(@Inject(CACHE_MANAGER) private readonly cacheManager: RedisStore) {} diff --git a/packages/graphql/config/env.ts b/packages/graphql/config/env.ts index 1f42098..5272ffc 100644 --- a/packages/graphql/config/env.ts +++ b/packages/graphql/config/env.ts @@ -7,7 +7,7 @@ export const envSchema = z.object({ LOGIN_GRAPHQL: z.string(), PASSWORD_GRAPHQL: z.string(), URL_GRAPHQL: z.string(), - URL_GRAPHQL_CACHED: z.string().default('http://cache-proxy:5000/proxy/graphql'), + URL_GRAPHQL_CACHED: z.string().default('http://cache-proxy:5000/api/graphql'), }); export const env = envSchema.parse(process.env);