mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: centralize API URL and internal API key management for improved maintainability
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user