260728_02_ENH: SID String으로 교체
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user