Add methods for changing user roles to index and User.class controller

I changed "POST /user/role/change" to "PUT/user" and changed the path in the backend factory from "user/role/change" to "user" and it didn't work. The rest I did too, but the problem seems to be with this change. Whenever I want to change a user's role ı get a 412 error which is the error code of registration()