refactor: centralize API URL and internal API key management for improved maintainability

This commit is contained in:
2026-03-06 20:09:14 -05:00
parent 528456c168
commit d21265f443
7 changed files with 23 additions and 31 deletions
@@ -1,6 +1,5 @@
import type { RequestHandler } from '@sveltejs/kit';
const apiUrl = process.env.VITE_API_URL || 'http://localhost:5050';
import { apiUrl } from '$lib/server/api';
export const GET: RequestHandler = async ({ params }) => {
const { id } = params;