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

Versioning in the Blueprint Group #2045

Closed
SaidBySolo opened this issue Mar 5, 2021 · 2 comments · Fixed by #2047
Closed

Versioning in the Blueprint Group #2045

SaidBySolo opened this issue Mar 5, 2021 · 2 comments · Fixed by #2047
Assignees

Comments

@SaidBySolo
Copy link
Member

SaidBySolo commented Mar 5, 2021

Is your feature request related to a problem? Please describe.
I use sanic to make api, and I am using it.

Currently, the url is managed through a blueprint group, if use single blueprints can be versioned, but blueprints cannot be versioned in the case of a group.

If versioning is possible, maintenance will be much more convenient.

Describe the solution you'd like
Can use versioning in the blueprint group.

Additional context

Blueprint.group(example_blueprint, example_blueprint_two, url_prefix="api", version="v1")
@ahopkins ahopkins self-assigned this Mar 5, 2021
@ahopkins
Copy link
Member

ahopkins commented Mar 5, 2021

Great idea. If someone doesn't best me to it, I'll get a PR on this weekend.

@ahopkins
Copy link
Member

ahopkins commented Mar 5, 2021

While we are at it, we should probably also carry thru strict_slashes.

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 a pull request may close this issue.

2 participants