API: Get All Popular Routes

Request

Retrieve all routes with a GET request:

GET /routes/popular-routes

Sample Response:


{
  "status": "success",
  "message": "Popular routes retrieved successfully",
  "data": [
    {
      "id": 1,
      "start_name": "Updated District 1",
      "end_name": "Updated District 1",
      "distance": 1300,
      "duration": "02:45",
      "is_popular": "1",
      "popular_position": "1",
      "status": "1"
    },
    {
      "id": 2,
      "start_name": "District A",
      "end_name": "District B",
      "distance": 1500,
      "duration": "03:00",
      "is_popular": "1",
      "popular_position": "2"
      "status": "1"
    }
  ]
}