clean up unused code and create login callback api endpoints

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-06-22 15:09:35 +07:00
parent 93f46a3f90
commit 8333eb36fc
26 changed files with 100 additions and 426 deletions

View File

@@ -0,0 +1,9 @@
import { authorize, getOrigin } from 'lib/shopify/auth';
import { NextRequest, NextResponse } from 'next/server';
export const runtime = 'edge';
export async function GET(request: NextRequest): Promise<NextResponse> {
const origin = getOrigin(request);
return await authorize(request, origin);
}