mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Former-commit-id: 0f9609ee485e94cf7b0d56cf134dd2a3ce703cdf
This commit is contained in:
parent
7723e438a1
commit
06a52e9bec
|
@ -39,8 +39,9 @@ func main() {
|
|||
ctx.Next()
|
||||
})
|
||||
// app.Done(func(ctx iris.Context) {]})
|
||||
app.Subdomain("wtf.").Post("/decode", func(ctx iris.Context) {})
|
||||
app.Subdomain("wtf.").Post("/decode", func(ctx iris.Context) {})
|
||||
|
||||
// POST: scheme://mysubdomain.$domain.com/decode
|
||||
app.Subdomain("mysubdomain.").Post("/decode", func(ctx iris.Context) {})
|
||||
// Method POST: http://localhost:8080/decode
|
||||
app.Post("/decode", func(ctx iris.Context) {
|
||||
var user User
|
||||
|
@ -73,7 +74,7 @@ func main() {
|
|||
}
|
||||
|
||||
// Listen for incoming HTTP/1.x & HTTP/2 clients on localhost port 8080.
|
||||
app.Run(iris.Addr(":8080"), iris.WithCharset("UTF-8"))
|
||||
app.Run(iris.Addr(":8080"), iris.WithCharset("UTF-8"), iris.WithoutVersionChecker)
|
||||
}
|
||||
|
||||
func logThisMiddleware(ctx iris.Context) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user