zalgonoise/eljoth-go-code-review

internal/api: Apply endpoint improvements

zalgonoise opened this issue · 0 comments

  • As covered in #6, the request-specific objects can be declared within the HTTP endpoint methods. In this case, the ApplicationRequest type can be declared within the function body.
  • When the request errors, the client does not get a response. An appropriate response message and status code should be included before the returns