Files
prod-wag-backend-automate-s…/y-trash/management_frontend copy/src/app/api/cookies/selection/route.ts
2025-05-19 23:12:23 +03:00

21 lines
560 B
TypeScript

import { retrieveUserSelection } from "@/apicalls/cookies/token";
import { NextResponse } from "next/server";
export async function POST(): Promise<NextResponse> {
try {
const userSelection = await retrieveUserSelection();
console.log("userSelection", userSelection);
if (userSelection) {
return NextResponse.json({
status: 200,
message: "User selection found",
data: userSelection,
});
}
} catch (error) {}
return NextResponse.json({
status: 500,
message: "User selection not found",
});
}