diff --git a/README.md b/README.md index fed63905..8d80d10a 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ func createUser(c *echo.Context) { u := new(user) if c.Bind(u) { users[u.ID] = *u - c.JSON(http.StatusOK, u) + c.JSON(http.StatusCreated, u) } } @@ -107,6 +107,7 @@ func main() { // Start server e.Run(":8080") } + ``` ### Benchmark