mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixed up a couple of incorrect response codes (#1095)
* Fixed up a couple of incorrect response codes * Standardise all entities on 204 with no return content on successful delete * Fix failing Fn.delete() test
This commit is contained in:
@@ -18,5 +18,5 @@ func (s *Server) handleFnDelete(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{"message": "Successfully deleted func"})
|
||||
c.String(http.StatusNoContent, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user