replaced sync-group api redirect response with 200s and 201s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user