when no arguments are provided to defresource, it should generate a function with the request as parameter, instead of a function with 0 arguments that returns a function of request.