Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Use Flask routing to allow for variables in URL #14

Closed
wants to merge 1 commit into from

Conversation

clarkduvall
Copy link

This allows for variable URLs with no change to the current API.

@sockets.route('<name>/receive'):
def receive(ws, name):
    ...

I saw that there was already a pull request for this here: https://github.com/kennethreitz/flask-sockets/pull/7, but I think the solution proposed in this PR is cleaner, with no breaking changes. Based on the other pull request, it looks like a lot of people want this feature.

@kennethreitz what do you think?

@ssfrr
Copy link

ssfrr commented Apr 11, 2014

This is great, thanks @clarkduvall!

I'm using your fork until this gets merged upstream.

@kennethreitz
Copy link
Contributor

Going to go with #18

@clarkduvall
Copy link
Author

Works for me, thanks @kennethreitz!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants