diff --git a/apps/web/app/api/page.tsx b/apps/web/app/api-docs/page.tsx similarity index 100% rename from apps/web/app/api/page.tsx rename to apps/web/app/api-docs/page.tsx diff --git a/apps/web/app/api/[[...slug]]/route.ts b/apps/web/app/api/[[...slug]]/route.ts new file mode 100644 index 0000000..92bdbbb --- /dev/null +++ b/apps/web/app/api/[[...slug]]/route.ts @@ -0,0 +1,38 @@ +import { NextResponse } from "next/server"; + +export const runtime = "edge"; + +export async function GET() { + return NextResponse.json( + { error: "Not found. See /api-docs for API documentation." }, + { status: 404 }, + ); +} + +export async function POST() { + return NextResponse.json( + { error: "Not found. See /api-docs for API documentation." }, + { status: 404 }, + ); +} + +export async function PUT() { + return NextResponse.json( + { error: "Not found. See /api-docs for API documentation." }, + { status: 404 }, + ); +} + +export async function PATCH() { + return NextResponse.json( + { error: "Not found. See /api-docs for API documentation." }, + { status: 404 }, + ); +} + +export async function DELETE() { + return NextResponse.json( + { error: "Not found. See /api-docs for API documentation." }, + { status: 404 }, + ); +}