9 lines
268 B
TypeScript
9 lines
268 B
TypeScript
import { redirect } from '@sveltejs/kit';
|
|
import type { RequestHandler } from './$types';
|
|
import { createAuthUrl } from '$lib/google/auth/server.js';
|
|
|
|
export const GET: RequestHandler = () => {
|
|
const authUrl = createAuthUrl();
|
|
throw redirect(302, authUrl);
|
|
};
|