fix: normalize path voor lokale pins - verwijder leading slash

This commit is contained in:
maikrolf
2026-09-19 17:30:04 +02:00
parent bdc6805b89
commit 729b052d08
+1 -1
View File
@@ -3,7 +3,7 @@ import { kuboApiUrl, kuboBasicAuth } from '@/lib/config';
import { localListPins, localAddPin, localRemovePin } from '@/lib/local-pins';
export async function proxyIPFS(path: string, method: string, req: NextRequest): Promise<Response> {
// Normalize path
// Normalize path — verwijder leading/trailing slashes
const p = path.replace(/^\/+/, '').replace(/\/+$/, '');
// ── Lokale pin opslag (altijd, ongeacht Kubo) ──