Skip to content

Simplify EndpointHandler by adding the ability to just return the body #805

@shairez

Description

@shairez

Is your feature request related to a problem?

I'd like to save the characters of having to retype the status and headers

Describe the solution you'd like

I think returning just the body object as an additional return type option could help, while adding good defaults for headers or status.

Thought about creating PR by changing this line and then changin the implementation of getEndpointResponse accordingly

But would love to hear your thoughts first

Describe alternatives you've considered

Maybe a wrapper for the default return... but hmm... that's another step in the way

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions