fix: wrap model-groups API responses in SuccessResponse for api.js client
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

This commit is contained in:
2026-05-05 11:41:23 -04:00
parent 4fef201e95
commit 14de7e9ebf
+3 -3
View File
@@ -17,7 +17,7 @@ func (s *Server) handleGetModelGroups(c *gin.Context) {
if groups == nil {
groups = []db.ModelGroup{}
}
c.JSON(http.StatusOK, groups)
c.JSON(http.StatusOK, SuccessResponse(groups))
}
func (s *Server) handleCreateModelGroup(c *gin.Context) {
@@ -38,7 +38,7 @@ func (s *Server) handleCreateModelGroup(c *gin.Context) {
}
s.refreshRouter()
c.JSON(http.StatusCreated, group)
c.JSON(http.StatusCreated, SuccessResponse(group))
}
func (s *Server) handleUpdateModelGroup(c *gin.Context) {
@@ -60,7 +60,7 @@ func (s *Server) handleUpdateModelGroup(c *gin.Context) {
}
s.refreshRouter()
c.JSON(http.StatusOK, group)
c.JSON(http.StatusOK, SuccessResponse(group))
}
func (s *Server) handleDeleteModelGroup(c *gin.Context) {