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) ──