Advanced node and express: stuck at 10) logging out a user

Hi, as the says it I’m stuck on this step right here and my code can be found here.

This looked like an easy step at first, but when I entered my code, test 2 “Logout should redirect to the home page.” didn’t pass.
Then I refreshed the page and now my api just says “Not found”.
I didn’t change any other code so I would be grateful to hear what I did wrong in there.

Hello there,

Your routes should not be outside of the myDB callback function. Try adding all of your routes within that.

Hope this helps

1 Like

Hi, I thought they were inside but apparenlty I messed up somewhere, thanks for the reply and for being as quick as you were.

1 Like