Add new API endpoint to get the courses classified by date