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:
parent
eef1338cd2
commit
0039de3499
@ -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) {}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user