Error 405 on Strapi request

I want to implement custom register method where user verifies his/her mobile no. using OTP.
When i’m trying to extend plugin::users-permissions.auth controller, I followed this steps in strapi v4 documentation,

When I’m making call to API /api/auth/local/ or /api/auth/local/register
I got error 405 Method not allowed.

Maybe you have any idea, why that could be. Thanks in advance for your help!