ffarooqui2 / evl-express-backend-basics

0 stars 0 forks source link

Express routes #8

Closed renambot closed 1 year ago

renambot commented 1 year ago
ffarooqui2 commented 1 year ago

It was working, but now its broken. Do I need to use if else statements?

ffarooqui2 commented 1 year ago

Okay so I kinda fixed it, but what I did was just caught the unknown URL at the end. Is that fine?

renambot commented 1 year ago

yes it's fine. The routes are matched in the order you define them, so the last one will catch everything else.