How to extend user resource with custom REST resource?

I have successfully developed Keycloak custom REST resource by extending /admin URL as below.


Now I’m looking for solution to extend this API without using /ext path as below.


Is there any way to achieve this by extending UserResource or using any other Keycloak extension providers ?