Skip to content

Commit

Permalink
refactor response.go for clearer error reporting
Browse files Browse the repository at this point in the history
* Consolidated repetitive logic into a single sendJSON function.
* Used sendJsonObject to handle all the cases of sending a JSON object with HTTP status code checks.
* Reduced code redundancy across all the similar functions by grouping logic where applicable.
  • Loading branch information
alexlovelltroy authored Oct 10, 2024
1 parent d248f73 commit da00d03
Showing 1 changed file with 83 additions and 612 deletions.
Loading

0 comments on commit da00d03

Please sign in to comment.