260728_02_ENH: SID String으로 교체

This commit is contained in:
2026-07-28 11:47:33 +09:00
parent d97015741a
commit d9f53c0c3d
18 changed files with 151 additions and 54 deletions

View File

@@ -11,7 +11,9 @@ export const GET = async (req: NextRequest, context: RouteContext) => {
const contactApi = await createContactApi();
if (action === "sid" && slug.length === 3) {
const result = await contactApi.get<ListReserve[]>(`/reserve/${slug[1]}/sid/${slug[2]}`);
const result = await contactApi.get<ListReserve[]>(
`/reserve/${slug[1]}/sid/${encodeURIComponent(slug[2])}`,
);
return NextResponse.json(result, { status: 200 });
}