This is an MDX page that imports another MDX file as a partial.
The code block below is from another MDX file:
import { checkBotId } from "botid/server";
export async function POST(req: Request) {
const { isBot } = await checkBotId();
if (isBot) {
return new Response("Access Denied", { status: 403 });
}
const result = await expensiveOrCriticalOperation();
return new Response("Success!");
}