Because I would know how to do @request.get() def api(): return dict()
@request.post() def api(): return dict() i.e. have two functions with the same name and select one or the other without ambiguity. On Mar 13, 9:04 am, "[email protected]" <[email protected]> wrote: > Would not it be better to do this? > > @request.get() > <@request.post()> > <@request.put()> > <@request.delete()> > def api(): > (...) > return dict(...) > > _____________________________________________ > *Gilson Filho* > *Web Developerhttp://gilsondev.com*

