From 9c479d0e00e52ca2671d2502fb4fc8d244699838 Mon Sep 17 00:00:00 2001 From: Arhan Ansari Date: Sat, 16 Nov 2024 18:04:36 +0530 Subject: [PATCH] Create route.ts --- app/api/public-route/route.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/api/public-route/route.ts diff --git a/app/api/public-route/route.ts b/app/api/public-route/route.ts new file mode 100644 index 0000000..c0cd473 --- /dev/null +++ b/app/api/public-route/route.ts @@ -0,0 +1,11 @@ +// app/api/public-route/route.ts +import { NextResponse } from "next/server"; + +export async function GET() { + const response = { + message: "This is a public route. No authentication required.", + status: "success", + timestamp: new Date().toISOString(), + }; + return NextResponse.json(response, { status: 200 }); +}