Show error when old API is called

This commit is contained in:
Konstantin Wohlwend 2024-08-30 14:03:15 -07:00
parent ad8d918014
commit 853d369dcb

View File

@ -0,0 +1,16 @@
import { NextRequest, NextResponse } from "next/server";
const handler = async (req: NextRequest) => {
return NextResponse.json({
error: "Stack Auth's dashboard API is no longer available. Please upgrade the version of your Stack Auth client library, or join our Discord server for assistance: https://discord.stack-auth.com",
}, {
status: 400,
});
};
export const GET = handler;
export const POST = handler;
export const PUT = handler;
export const DELETE = handler;
export const PATCH = handler;
export const OPTIONS = handler;