Hi @a876c,
Welcome to the Auth0 Community, and thank you for sharing this workaround.
Actually this approach allows you to even customize any Identity API endpoint. However, I would expect there to be an easier way to disable/replace endpoints, for example via configuration.
I’m confident this will be fixed soon