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

getJson should only return json, not redirect, if the todo is is undefined return an empty array. #12

Open
pdatta1 opened this issue Dec 3, 2023 · 1 comment
Labels
invalid This doesn't seem right

Comments

@pdatta1
Copy link
Owner

pdatta1 commented Dec 3, 2023

    issue -> /getJson is redirecting to /list
            - developers needs to remove the else statemen to
            - redirect in order to get the json.
            - make sure the todo list array is populated
@aliyah-robinson aliyah-robinson added the invalid This doesn't seem right label Dec 4, 2023
@ekaulfuss
Copy link
Collaborator

Easily done. It wasn't doing anything anyways, more futureproofing than anything else. It's gone now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants