Skip to content

Commit 0acb268

Browse files
author
Vishal Rana
committed
Update README.md
1 parent ccec2b8 commit 0acb268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func createUser(c *echo.Context) {
5757
u := new(user)
5858
if c.Bind(u) {
5959
users[u.ID] = *u
60-
c.JSON(http.StatusOK, u)
60+
c.JSON(http.StatusCreated, u)
6161
}
6262
}
6363

@@ -107,6 +107,7 @@ func main() {
107107
// Start server
108108
e.Run(":8080")
109109
}
110+
110111
```
111112

112113
### Benchmark

0 commit comments

Comments
 (0)