mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Show error when old API is called
This commit is contained in:
parent
ad8d918014
commit
853d369dcb
16
apps/dashboard/src/app/api/[...any]/route.tsx
Normal file
16
apps/dashboard/src/app/api/[...any]/route.tsx
Normal 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;
|
||||
Loading…
Reference in New Issue
Block a user