replaced sync-group api redirect response with 200s and 201s

This commit is contained in:
2026-01-24 14:21:39 -07:00
parent eacbea473c
commit 50325e7cf7
2 changed files with 24 additions and 25 deletions
+16
View File
@@ -23,6 +23,22 @@ func Status(code int) Response {
}
}
func StatusOK() Response {
return Status(http.StatusOK)
}
func StatusCreated() Response {
return Status(http.StatusCreated)
}
func StatusAccepted() Response {
return Status(http.StatusAccepted)
}
func StatusNoContent() Response {
return Status(http.StatusNoContent)
}
func (s statusRes) String() string {
if s.res != nil {
return fmt.Sprintf(`{"status": %d, "nested": %s}`, s.code, s.res)