From 4f10bdce2940ba62c1654301ed98ffc3a9df1ac5 Mon Sep 17 00:00:00 2001 From: wont-stream Date: Wed, 15 Jan 2025 13:01:24 -0500 Subject: [PATCH] Fix response messages for type parameter validation in API --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 876ac0e..75ee679 100644 --- a/index.ts +++ b/index.ts @@ -65,11 +65,11 @@ Bun.serve({ const name = searchParams.get("name") as string; if (!type) { - return new Response("Please provide a type parameter, user or orgs", { status: 400 }); + return new Response("Please provide a type parameter, users or orgs", { status: 400 }); } if (type !== "users" && type !== "orgs") { - return new Response("Type parameter must be either user or orgs", { status: 400 }); + return new Response("Type parameter must be either users or orgs", { status: 400 }); } if (!name) {