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.
This commit is contained in:
vchikalkin 2025-10-06 21:54:08 +03:00
parent eef1338cd2
commit 0039de3499
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ type RedisStore = Omit<Cache, 'set'> & {
set: (key: string, value: unknown, { ttl }: { ttl: number }) => Promise<void>;
};
@Controller('proxy')
@Controller('api')
export class ProxyController {
constructor(@Inject(CACHE_MANAGER) private readonly cacheManager: RedisStore) {}

View File

@ -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);