mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Add an example on how to use third-party handlers that are not compatible to the "next pattern"
Former-commit-id: 39a57bd97542142cb61eac9b0ee9b40df2334019
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
func main() {
|
||||
app := iris.New()
|
||||
ionMiddleware := iris.FromStd(negronilikeTestMiddleware)
|
||||
app.Use(ionMiddleware)
|
||||
irisMiddleware := iris.FromStd(negronilikeTestMiddleware)
|
||||
app.Use(irisMiddleware)
|
||||
|
||||
// Method GET: http://localhost:8080/
|
||||
app.Get("/", func(ctx iris.Context) {
|
||||
|
||||
Reference in New Issue
Block a user