CHANGED: updated the routes and methods to best practices