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

Query Params of route in handler need to be defined in @route and as handler function atributes #2

Open
Lemon2311 opened this issue May 27, 2024 · 0 comments
Labels
enhancement New feature or request pretty Makes using the tool prettier, removes boilerplate or makes developing easier, more enjoyable

Comments

@Lemon2311
Copy link
Owner

Lemon2311 commented May 27, 2024

I would be cool to mention them only once.

Example of behaviour:

@GET('/nips', 'email', 'nrOfNips')
async def nips_handler(email, nrOfNips):
    return f'{email}, {nrOfNips}'

Desired behaviour can be either:

1.)

@GET('/nips', 'email', 'nrOfNips')
async def nips_handler():
    return f'{email}, {nrOfNips}'

or

2.)

@GET('/nips')
async def nips_handler(email, nrOfNips):
    return f'{email}, {nrOfNips}'

or something similar.

@Lemon2311 Lemon2311 added the enhancement New feature or request label May 27, 2024
@Lemon2311 Lemon2311 added the pretty Makes using the tool prettier, removes boilerplate or makes developing easier, more enjoyable label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pretty Makes using the tool prettier, removes boilerplate or makes developing easier, more enjoyable
Projects
None yet
Development

No branches or pull requests

1 participant