Fix time picker, WIP date picker

This commit is contained in:
2025-10-15 20:03:43 +01:00
parent 0ed89df995
commit 5e9bad058f
3 changed files with 267 additions and 51 deletions
+5 -2
View File
@@ -1,4 +1,3 @@
// src/routes/api/[...path]/+server.ts
import { error } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
@@ -6,7 +5,11 @@ const BACKEND_URL =
import.meta.env.VITE_BACKEND_URL || 'http://localhost:8080';
async function proxyRequest(request: Request, path: string) {
const url = `${BACKEND_URL}/api/${path}`;
const incomingUrl = new URL(request.url);
const queryString = incomingUrl.search;
const url = `${BACKEND_URL}/api/${path}${queryString}`;
try {
const headers = new Headers(request.headers);