def double_ep_view(): view = endpoint('/foo', methods.PUT)(simple_view) return endpoint('/foo', methods.POST)(view)
def single_ep_view(): return endpoint('/foo', methods.GET)(simple_view)