mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Former-commit-id: 55ce0b2f911a3088d28d4393b68ba9af97f79f94
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user