kenichi / angelo

Sinatra-like DSL for Reel that supports WebSockets and SSE
Other
303 stars 23 forks source link

MultiRoute support #41

Open mkonecny opened 9 years ago

mkonecny commented 9 years ago

Sinatra has a great module for allowing you to rename your route names while still maintaining backward compatibility for older clients:

http://www.sinatrarb.com/contrib/multi_route.html

kenichi commented 9 years ago

that is cool. currently, through regex and mustermann, you could probably have one route block respond to mutliple paths, but not multiple verbs like that. i think this would be good as a contrib style module.

@samjohnduke made angelo-sessions; that and this could be a great start to a "angelo-contrib". perhaps it's time to formalize the plugin/module interface.

@mkonecny are you wanting to try implementing this?