lib sources restructuring

This commit is contained in:
Roman Krček
2025-07-02 23:56:11 +02:00
parent 878198fabd
commit 81e2e53cc5
19 changed files with 391 additions and 115 deletions

View File

@@ -1,8 +1,8 @@
import { redirect } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
import { createAuthUrl } from '$lib/google-server.js';
import { authServer } from '$lib/google/index.js';
export const GET: RequestHandler = () => {
const authUrl = createAuthUrl();
const authUrl = authServer.createAuthUrl();
throw redirect(302, authUrl);
};