sloev/python-lambdarest

more complex routing

sloev opened this issue · 3 comments

sloev commented

Yes og course. It was very nondescript :-)

I think it would be great if the handler supported both of the following
syntaxes:

Normal behaviour, implicitly routing /:

@lambda_handler.handle('get')
def get_this():pass

And more complex routings like

@lambda_handler.handle('get', path='/foobar')
def get_this_foobar():pass

Can you please add a little bit more context on this issue.

sloev commented

any comments on the implementation: #15 ?

LGTM!