Files
scan-wave/src/routes/auth/google/+server.ts
2025-07-08 12:07:43 +02:00

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