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
Unable to mount to path containing variable #793
Comments
Hi Brandon, Is it not sufficient to put the parameter in the route (as opposed to in bottle.mount('/users', app) @app.get('/<user_id>') On Fri, Oct 9, 2015 at 6:30 PM, Brandon Hsiao notifications@github.com
|
No, I don't think it does. Wouldn't it still useful be to decompose an app bottle.mount('/users', user_app) @ @project_app.get('/<project_id>') On Sat, Oct 10, 2015 at 4:19 PM, Brandon Hsiao notifications@github.com
|
Thanks for the explanation. After mulling it over, I suppose I find your I do find your third point more apt--but since I've never designed an app On Sat, Oct 10, 2015 at 9:33 PM, Brandon Hsiao notifications@github.com
|
From my view the logic for mounting with a variable in the mount point does not seem to really fit. However I do sympathise with you having to tyle '/<user_id:int>/mesage' '/<user_id:int>/hobies' etc each time. I made a filter that may be of some help. It allow for multiple choice. It is designed for file name, but would work for your case.
Not sure if it helps, but if it does I will post the code. |
Hi @innov8ian , would be interested in some extra code with an example 👍 |
No description provided.
The text was updated successfully, but these errors were encountered: