Is your feature request related to a problem? Please describe.
There is some repeated code in the User routes, which can be reduced by adding class methods to the User model, also making the code more readable.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
I'll soon submit a PR for this.
Is your feature request related to a problem? Please describe. There is some repeated code in the User routes, which can be reduced by adding class methods to the User model, also making the code more readable.
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context I'll soon submit a PR for this.