yoshuawuyts / server-router

Server router
MIT License
61 stars 9 forks source link

Do not crash on undefined route. #29

Closed perguth closed 5 years ago

perguth commented 5 years ago

Crashing on undefined routes is not a good behaviour in my opinion. We should return 404.

Previous issue w/ similar remark: #27

perguth commented 5 years ago

I misunderstood how to use this lib: https://github.com/yoshuawuyts/server-router/pull/31