API

Delete blocked pathname

DELETEhttps://api.visitors.now/v1/project/blocked-pathnames/:pathname

Removes a blocked pathname from the project.

Request

index.ts
const pathname = encodeURIComponent("/admin/*");

const res = await fetch(`https://api.visitors.now/v1/project/blocked-pathnames/${pathname}`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${VISITORS_API_KEY}` },
});

const data = await res.json();

Response

{
  "blockedPathnames": []
}