fix: Identifier formats json et csv permis lors d'insertion

Clarifier le message d'erreur d'insertion `Invalid Content-Type` pour inclure les
formats permis
This commit is contained in:
Victor Lacasse-Beaudoin 2024-01-05 14:49:44 -05:00
parent 6ee96c3b97
commit b8f05cb266

View file

@ -43,7 +43,7 @@ func (h *Handler) PostMembres(c echo.Context) error {
}
default:
response.StatusCode = http.StatusBadRequest
response.Message = "Invalid Content-Type"
response.Message = "Invalid Content-Type: Please use application/json or text/csv"
return c.JSON(response.StatusCode, response)
}