Skip to content

the add_route decorator seems to be only good for one method with same signature #130

@sjatkins

Description

@sjatkins

This doesn't seem to be good if so for REST type interfaces. I wanted to have
@app.add_route(r'^/run/paramenters/(\w+)', method='GET")
def my_getter(run_id): pass
and
@app.add_route(r'^/run/paramenters/(\w+)', method='POST")
def my_setter(run_id): pass

But in that order I get a 405 for the POST. What gives? I can do this with classes all day. Some bug under the add_route decorator?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions