From 729b052d088e0f6ec1c20ad6835c727d39b8f6c3 Mon Sep 17 00:00:00 2001 From: maikrolf <40924921+maikrolf@users.noreply.github.com> Date: Sat, 19 Sep 2026 17:30:04 +0200 Subject: [PATCH] fix: normalize path voor lokale pins - verwijder leading slash --- src/app/api/[...path]/proxy-ipfs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/[...path]/proxy-ipfs.ts b/src/app/api/[...path]/proxy-ipfs.ts index a71ab7e..d97433a 100644 --- a/src/app/api/[...path]/proxy-ipfs.ts +++ b/src/app/api/[...path]/proxy-ipfs.ts @@ -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 { - // Normalize path + // Normalize path — verwijder leading/trailing slashes const p = path.replace(/^\/+/, '').replace(/\/+$/, ''); // ── Lokale pin opslag (altijd, ongeacht Kubo) ──