Refactored routes moving them to a separate file
Changed API endpoints to live under /api/