complete-node-bootcamp icon indicating copy to clipboard operation
complete-node-bootcamp copied to clipboard

https://www.natours.dev/api/v1/tours returning nested data in data

Open lorand-horvath opened this issue 3 years ago • 1 comments

The demo site at https://www.natours.dev doesn't work properly due to the underlying API returning data in data nested results, e.g. https://www.natours.dev/api/v1/tours returns

    "status": "success",
    "results": 10,
    "data": {
        "data": [
            {
                "startLocation": {
                    "type": "Point",
                    "coordinates": [
                        -80.185942,
                        25.774772
                    ],
                    "description": "Miami, USA",
                    "address": "301 Biscayne Blvd, Miami, FL 33132, USA"
                },

lorand-horvath avatar Oct 25 '22 15:10 lorand-horvath