How to Reemplace findOne for ID for slug in strapi 4.0

@contactvinodc - To define your custom routes and controller along with keeping the default routes, you need to create a new file within routes folder. I have achieved it with following structure:-

In the custom router file, you can define routes like this

To map it to the custom controller, you can follow below in custom controller file:-

Hope this helps.