Create custom endpoint with custom url

I want to create my own endpoint with my own function but I want to define a personalized url for it that I want I don’t want to go through /method/…, is it possible how can I do it

like :
url/customdet: will return the details of the customers I want
I think the work is going to be in both and file of frappe/frappe but I can’t figure out how
I need an answer as soon as possible please

Use api gateway or reverse proxy and map the frappe’s generated endpoint with custom one.

Plesase can you explain more

Search about nginx configuration or api gateway

Try something like this. regex - nginx rewrite url without causing redirect and proxy to backend app - Stack Overflow

You need to try on your own, I can’t help much. I’m not using such thing.