Refactor api user controller and add message route