diff --git a/www/apps/resources/app/integrations/guides/algolia/page.mdx b/www/apps/resources/app/integrations/guides/algolia/page.mdx index a6a8b7a7b0..b5073c5171 100644 --- a/www/apps/resources/app/integrations/guides/algolia/page.mdx +++ b/www/apps/resources/app/integrations/guides/algolia/page.mdx @@ -1023,9 +1023,9 @@ While you can implement the search functionality directly in the storefront to i -To implement the API Route, create the file `src/api/store/search/route.ts` with the following content: +To implement the API Route, create the file `src/api/store/products/search/route.ts` with the following content: -```ts title="src/api/store/search/route.ts" +```ts title="src/api/store/products/search/route.ts" import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http" import { ALGOLIA_MODULE } from "../../../../modules/algolia" import AlgoliaModuleService from "../../../../modules/algolia/service"