From e084a3801acbd102200937ff543f8cd60dc51258 Mon Sep 17 00:00:00 2001 From: Jordan Harrison <76656637+jouwdan@users.noreply.github.com> Date: Tue, 23 Apr 2024 09:08:58 +0100 Subject: [PATCH 1/2] docs: correct api route in search api --- www/content/guides/search-api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/content/guides/search-api.mdx b/www/content/guides/search-api.mdx index b41e4c3f2..4079221df 100644 --- a/www/content/guides/search-api.mdx +++ b/www/content/guides/search-api.mdx @@ -45,7 +45,7 @@ We recommend using an [API route](https://nextjs.org/docs/api-routes/introductio 1. Create the following API route. -```ts title=api/pages/[index].tsx +```ts title=api/pages/search/[index].tsx import { NextApiRequest, NextApiResponse } from "next" import { DrupalNode } from "next-drupal" From 308b603b8bfde286a3c128e9c2c658d6f0c6102b Mon Sep 17 00:00:00 2001 From: Jordan Harrison Date: Tue, 23 Apr 2024 21:19:45 +0100 Subject: [PATCH 2/2] Update search-api.mdx --- www/content/guides/search-api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/content/guides/search-api.mdx b/www/content/guides/search-api.mdx index 4079221df..637f4a24a 100644 --- a/www/content/guides/search-api.mdx +++ b/www/content/guides/search-api.mdx @@ -45,7 +45,7 @@ We recommend using an [API route](https://nextjs.org/docs/api-routes/introductio 1. Create the following API route. -```ts title=api/pages/search/[index].tsx +```ts title=pages/api/search/[index].tsx import { NextApiRequest, NextApiResponse } from "next" import { DrupalNode } from "next-drupal"