mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Fixes bad copy/paste
Former-commit-id: 437b60bc6b37d8a755198fb97809c61b9c18004e
This commit is contained in:
parent
643358d7cb
commit
7a29519c5a
|
@ -11,11 +11,11 @@ func main() {
|
||||||
// will handle *all* expect DELETE requests, even if there is no routes
|
// will handle *all* expect DELETE requests, even if there is no routes
|
||||||
app.Get("/action/{p}", h)
|
app.Get("/action/{p}", h)
|
||||||
|
|
||||||
app.Run(iris.Addr(":8080"), ctx.Method(), ctx.Path(), iris.WithoutServerError(iris.ErrServerClosed))
|
app.Run(iris.Addr(":8080"), iris.WithoutServerError(iris.ErrServerClosed))
|
||||||
}
|
}
|
||||||
|
|
||||||
func h(ctx iris.Context) {
|
func h(ctx iris.Context) {
|
||||||
ctx.Writef("[%s] %s : Parameter = `%s`", ctx.Params().Get("p"))
|
ctx.Writef("[%s] %s : Parameter = `%s`", ctx.Method(), ctx.Path(), ctx.Params().Get("p"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func fallbackHandler(ctx iris.Context) {
|
func fallbackHandler(ctx iris.Context) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user