Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lorand-horvath opened this issue Oct 25, 2022 · 1 comment
Open

Comments

@lorand-horvath
Copy link

lorand-horvath commented Oct 25, 2022

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"
                },
@kavya-debug
Copy link

http://localhost:3000/api/v1/tours

Image

hi ,i downloaded and run the code . i attached screenshot .you can see in preview . i am getting tours inside data . is the issue solved or you need to load the tour data in mentioned ui tours page??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants