Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(codegen): support sending custom status code in express code generation #3565

Closed

Conversation

dsinghvi
Copy link
Member

@dsinghvi dsinghvi commented May 7, 2024

This PR shows what the code generation would look like to support sending custom status codes. The API is similar to express but just type-safe:

(req, res):  => {
  // to send 201, just do res.status(201)
  res.status(200).send(....);
}

@dsinghvi dsinghvi closed this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant