new response middleware functions to simplify middleware

This commit is contained in:
2026-01-23 22:16:11 -07:00
parent 3fd533091c
commit 649595718c
7 changed files with 159 additions and 149 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ func NewRouter(
) *Router {
r := gin.Default()
r.Use(response.HandleErrors)
r.Use(
response.HandleResponses,
response.HandleErrors,
)
// TODO: shouldn't this ACTUALLY be a middleware?
// - only try to make this an actual middleware AFTER all the routers are broken out, so that way how the middleware is supposed to work can be known