From 4fc822aae70d4f9f2a3080e982790dd37def4914 Mon Sep 17 00:00:00 2001 From: Sohail Ishaque Date: Tue, 14 Jan 2025 03:35:44 +0500 Subject: [PATCH] Update route.ts --- project-2-voting/web/app/api/vote/route.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project-2-voting/web/app/api/vote/route.ts b/project-2-voting/web/app/api/vote/route.ts index 64dbe38..3f655df 100644 --- a/project-2-voting/web/app/api/vote/route.ts +++ b/project-2-voting/web/app/api/vote/route.ts @@ -18,10 +18,12 @@ export async function GET(request: Request) { { href: 'http://localhost:3000/api/vote?candidate=crunchy', label: 'Vote Crunchy', + type: "transaction" }, { href: 'http://localhost:3000/api/vote?candidate=smooth', label: 'Vote Smooth', + type: "transaction" } ], }, @@ -78,4 +80,4 @@ export async function POST(request: Request) { }); return Response.json(response,{headers: ACTIONS_CORS_HEADERS}); -} \ No newline at end of file +}