Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic/add routes #1

Closed
wants to merge 2 commits into from

Conversation

karenetheridge
Copy link
Contributor

  • Minor doc edits (a Router::Dumb::Route object must be passed to add_route*)
  • add_route, add_route_unless_exists now handle a list of routes

@rjbs
Copy link
Owner

rjbs commented Apr 13, 2013

Thanks! I have applied the doc fix.

add_route takes only one to keep the interface simple and leave room for extra args later. I suggest:

$r->add_route($_) for @routes;

@rjbs rjbs closed this Apr 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants