Refactored routes and the method create