fix: normalize path voor lokale pins - verwijder leading slash
This commit is contained in:
@@ -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) ──
|
||||
|
||||
Reference in New Issue
Block a user