mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
README.md: example change
Former-commit-id: 4a66a689f86e5cd93ec9001e5ca18b4f5d3923be
This commit is contained in:
@@ -27,6 +27,7 @@ func main() {
|
||||
|
||||
// Read
|
||||
app.Post("/decode", func(ctx iris.Context) {
|
||||
// Read https://github.com/kataras/iris/blob/master/_examples/http_request/read-json/main.go as well.
|
||||
var user User
|
||||
ctx.ReadJSON(&user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user