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

How do you implement multiple paths pointing to one controller #12

Open
leeyisoft opened this issue Mar 25, 2019 · 3 comments
Open

How do you implement multiple paths pointing to one controller #12

leeyisoft opened this issue Mar 25, 2019 · 3 comments

Comments

@leeyisoft
Copy link

How do you implement multiple paths pointing to one controller
Or support regular expressions for path

@rancavil
Copy link
Owner

Please, Can you give us an example?

@leeyisoft
Copy link
Author

leeyisoft commented Mar 25, 2019

@get('/')
@get('/{name}')
@get('/echo/{name}')
def sayHello(self, name="Word"):
    return {'Hello':name}


@get('r/user/[\d{11}]/?')
def user_info(self, mobile):
    return {'Hello':name}

@leeyisoft
Copy link
Author

Can the _catch_fire _produces be set in the configuration file inside of the tornado

or, _produces is set ing Handler

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

No branches or pull requests

2 participants