new response middleware functions to simplify middleware
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user