diff --git a/README.md b/README.md index 6af4e08..01c6a4f 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ To use [Prisma Studio](https://www.prisma.io/studio), run `npm run studio` ### Albums -Data sourced from [**Turso**](https://turso.tech) for the **Album** resource type. Available at `/api/albums` locally and publicly as `/api/v2/albums`. +Data sourced from [**Turso**](https://turso.tech) for the **Album** resource type. Available at `/api/albums` locally and publicly as `/api/albums`. _Options:_ - `?id=xxx` - Filter by the `id` of the album @@ -60,14 +60,14 @@ _Options:_ ### Artists -Data sourced from [**Turso**](https://turso.tech) for the **Artist** resource type. Available at `/api/artists` locally and publicly as `/api/v2/artists`. +Data sourced from [**Turso**](https://turso.tech) for the **Artist** resource type. Available at `/api/artists` locally and publicly as `/api/artists`. _Options:_ - `?id=xxx` - Filter by the `id` of the artist ### Events -Structured events content sourced from [**Contentful**](https://contentful.com/) for the **Event** resource type. Available at `/api/events` locally and publicly as `/api/v2/events`. +Structured events content sourced from [**Contentful**](https://contentful.com/) for the **Event** resource type. Available at `/api/events` locally and publicly as `/api/events`. _Options:_ - `?id=xxx` - Filter by the `id` of the event @@ -77,7 +77,7 @@ _Options:_ ### Posts -Data sourced from [**Turso**](https://turso.tech) for the **Post** resource type. Available at `/api/posts` locally and publicly as `/api/v2/posts`. +Data sourced from [**Turso**](https://turso.tech) for the **Post** resource type. Available at `/api/posts` locally and publicly as `/api/posts`. _Options:_ - `?id=xxx` - Filter by the `id` of a post diff --git a/src/pages/api/webhook-contentful.ts b/src/pages/api/webhook-contentful.ts index 1ab8686..a2cf44a 100644 --- a/src/pages/api/webhook-contentful.ts +++ b/src/pages/api/webhook-contentful.ts @@ -35,7 +35,7 @@ export async function handler (request: Request) { Paths: { Quantity: 1, Items: [ - `/api/v2/${entity}s*` + `/api/${entity}s*` ] } }