You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to be able to specify a global base path e.g. as an argument to pr_run(), which would be taken into account by all routers including the documentation and spec urls.
I'm currently working around this by just creating an empty root router pr() and using pr_mount() to add my actual router under a base path. This is not a complete solution since I would also like to serve my documentation under that same base path.
I found options(plumber.apiPath), which looks like it's working, but the docs are actually served under http://127.0.0.1:5297/__docs__/
> plumber::options_plumber(apiPath = "/x")
> plumber::pr() %>% plumber::pr_run()
Running plumber API at http://127.0.0.1:5297
Running swagger Docs at http://127.0.0.1:5297/x/__docs__/
The text was updated successfully, but these errors were encountered:
It would be helpful to be able to specify a global base path e.g. as an argument to
pr_run()
, which would be taken into account by all routers including the documentation and spec urls.I'm currently working around this by just creating an empty root router
pr()
and usingpr_mount()
to add my actual router under a base path. This is not a complete solution since I would also like to serve my documentation under that same base path.I found
options(plumber.apiPath)
, which looks like it's working, but the docs are actually served underhttp://127.0.0.1:5297/__docs__/
The text was updated successfully, but these errors were encountered: