Open sjatkins opened 11 years ago
I think you are right that this is a bug.
I am very close to starting a refactor of Brubeck. I was working on Schematics. I intend to move the system away from using classes and moving to this decorator model, so I will fix this as part of that process.
On Tue, Oct 8, 2013 at 6:10 PM, sjatkins notifications@github.com wrote:
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?
— Reply to this email directly or view it on GitHubhttps://github.com/j2labs/brubeck/issues/130 .
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?