Chloe 8333eb36fc
clean up unused code and create login callback api endpoints
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-06-22 15:09:35 +07:00

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);
}