docs: fix path in algolia guide (#12141)

Converted "src/api/store/search/route.ts" to "src/api/store/products/search/route.ts"
This commit is contained in:
Sai-Santhan-Dodda authored and GitHub committed 2025-04-11 13:40:56 +03:00
1 parent 4283fa37b7
commit 7ae02194f4
1 file changed
+2 -2
@@ -1023,9 +1023,9 @@ While you can implement the search functionality directly in the storefront to i
</Note> </Note>
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 { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
import { ALGOLIA_MODULE } from "../../../../modules/algolia" import { ALGOLIA_MODULE } from "../../../../modules/algolia"
import AlgoliaModuleService from "../../../../modules/algolia/service" import AlgoliaModuleService from "../../../../modules/algolia/service"