change app api routing structure and add user model