replace "/user/" with "/profile/" in endpoints.