Creating Custom apis for search

Hi team,

I have just started working with strapi. I am new to NodeJS and Strapi. I have configured my backend and also integrated meilisearch search engine. Everything is working fine, except 1 thing, for search we are dependent on meilisearch sdk on client side. We want the search engine integrated at backend side, so that client can make call at strapi endpoint, and then from their the request can go to meilisearch engine, so that we can have 1 point of contact to track all requests and manage analytics.

Can we have 1 video tutorial or blog with this implementation.
Thanks
Ankit

@Ankit_Thakur

this is older code, it is giving error. @Hassan_WaqarButt here is the complete code issue, I am facing - Creating custom api but it is failing