We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7434156 commit 4e8b386Copy full SHA for 4e8b386
apps/items-app/src/index.ts
@@ -93,6 +93,7 @@ async function handle(req: Request): Promise<Response> {
93
if (!path.startsWith(API_PREFIX)) return notFound();
94
path = path.slice(API_PREFIX.length) || "/";
95
96
+ if (path === "/test1" && req.method === "GET") return json({ status: "test1" });
97
if (path === "/health" && req.method === "GET") return json({ status: "ok" });
98
if (path === "/items" && req.method === "GET") return json({ items });
99
0 commit comments