the whole app logic is located in the controller. it should be extracted into services and repositories
the whole app logic is located in the controller. it should be extracted into services and repositories