hanami / router

Ruby/Rack HTTP router
http://hanamirb.org
MIT License
362 stars 92 forks source link

Add not_found option #205

Closed katafrakt closed 4 years ago

katafrakt commented 4 years ago

This adds not_found option which was present in 1.x and allowed to specify custom handler for when route was not recognized.

It was a bit tempting to choose better name (default_handler perhaps?), but I decided to stick with original name for this PR.

katafrakt commented 4 years ago

Thanks for the comments, @jodosha. I addressed them now. Let me know if I should squash the commits before merge or something.