Skip to content

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

@Lemon2311

Description

@Lemon2311

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestprettyMakes using the tool prettier, removes boilerplate or makes developing easier, more enjoyable

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions