mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 21:27:50 +00:00
10 lines
302 B
TypeScript
10 lines
302 B
TypeScript
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);
|
|
}
|