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

Support sub-routers #36

Closed
trestletech opened this issue Feb 14, 2016 · 3 comments
Closed

Support sub-routers #36

trestletech opened this issue Feb 14, 2016 · 3 comments
Labels
type: enhancement Adds a new, backwards-compatible feature
Milestone

Comments

@trestletech
Copy link
Contributor

Plumber routers should be able to stack on one another by giving a prefix.

e.g.

prAcct <- plumb("accounts.R")
prSales <- plumb("sales.R")
pr$addRouter(prAcct, "/account")
pr$addRouter(prSales, "/sales")
@trestletech trestletech added the type: enhancement Adds a new, backwards-compatible feature label May 28, 2016
@rauno56
Copy link

rauno56 commented Jul 19, 2016

+1

Or a simple way to combine different files with routes would also help with structuring the code.
e.g.

prAcct <- plumb("accounts.R")
prBoth <- prAcct$combine(plumb("sales.R"))

@nihonjinrxs
Copy link

I'm fine with #60 being closed as a dup of this one, but do you have any timeline for implementation of this enhancement?

@ankur-gupta
Copy link

+1

All of these features would help us a lot to structure larger projects with lots of endpoints.
I would really appreciate this feature being available sooner. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Adds a new, backwards-compatible feature
Projects
None yet
Development

No branches or pull requests

4 participants