mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 09:22:09 +00:00
middleware
This commit is contained in:
14
apps/login/app/(login)/login/route.ts
Normal file
14
apps/login/app/(login)/login/route.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
return NextResponse.json({ found: true });
|
||||
}
|
||||
|
||||
export async function POST(request: NextRequest) {
|
||||
const body = await request.json();
|
||||
if (body) {
|
||||
return NextResponse.json({ found: true });
|
||||
} else {
|
||||
return NextResponse.error();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user