Skip to content

Commit

Permalink
Show selected countries in the response
Browse files Browse the repository at this point in the history
  • Loading branch information
prutya committed Oct 17, 2023
1 parent 4685125 commit 15cce71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/api/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export async function POST(request) {
const formData = await request.formData();
const countries = formData.getAll("countries");

console.debug("countries", countries);

return new Response("All good", { status: 200 });
return new Response(`Selected countries: ${countries.join(", ")}`, {
status: 200,
});
}

0 comments on commit 15cce71

Please sign in to comment.