1
0
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:
Gerasimos (Makis) Maropoulos
2017-10-13 06:59:31 +03:00
parent a9ac0aee2f
commit 21dc2cfbd8
6 changed files with 108 additions and 5 deletions

View File

@@ -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) {