Skip to content

Commit

Permalink
Create route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanAnsari authored Nov 16, 2024
1 parent bf318ff commit 9c479d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/api/public-route/route.ts
Original file line number Diff line number Diff line change
@@ -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 });
}

0 comments on commit 9c479d0

Please sign in to comment.