mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 11:06:27 +01:00
Former-commit-id: 55ce0b2f911a3088d28d4393b68ba9af97f79f94
This commit is contained in:
parent
099b7bebfa
commit
bcc3e9920a
|
@ -35,5 +35,10 @@ func main() {
|
|||
ctx.Writef("Visitor: %#v", visitor)
|
||||
})
|
||||
|
||||
app.Post("/post_value", func(ctx iris.Context) {
|
||||
username := ctx.PostValueDefault("Username", "iris")
|
||||
ctx.Writef("Username: %s", username)
|
||||
})
|
||||
|
||||
app.Run(iris.Addr(":8080"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user