Create custom endpoint for Users

Hi, i have tried this solutions but didn’t worked for me. Strapi version is 4.16.2.

Anyone has workaround ?