mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
clean up unused code and create login callback api endpoints
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
9
app/api/authorize/route.ts
Normal file
9
app/api/authorize/route.ts
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user