fix(gateway): 공통 메뉴 API를 Caddy 내부 경로에 등록
외부 /gateway/api/navigation이 prefix 제거 후 전달되는 /navigation 경로에서 응답하도록 수정한다.
This commit is contained in:
@@ -109,7 +109,7 @@ export const createGatewayApiServer = async () => {
|
|||||||
profiles,
|
profiles,
|
||||||
secret: config.gameTokenSecret,
|
secret: config.gameTokenSecret,
|
||||||
});
|
});
|
||||||
app.get(config.trpcPath.replace(/\/trpc\/?$/u, '/navigation'), async (_request, reply) => {
|
app.get('/navigation', async (_request, reply) => {
|
||||||
void reply.header('Cache-Control', 'no-store');
|
void reply.header('Cache-Control', 'no-store');
|
||||||
return navigationConfig.get();
|
return navigationConfig.get();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user