How to extend user resource with custom REST resource?

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

http://{host}/admin/realms/{realmId}/ext/users/{userId}/custom-path

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

http://{host}/admin/realms/{realmId}/users/{userId}/custom-path

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