(ctx dotweb.Context)
| 45 | } |
| 46 | |
| 47 | func Index(ctx dotweb.Context) error { |
| 48 | ctx.Response().Header().Set("Content-Type", "text/html; charset=utf-8") |
| 49 | //fmt.Println(time.Now(), "Index Handler") |
| 50 | err := ctx.WriteString("index => ", ctx.Request().Url()) |
| 51 | fmt.Println(ctx.RouterNode().GroupMiddlewares()) |
| 52 | return err |
| 53 | } |
| 54 | |
| 55 | func ShowMiddlewares(ctx dotweb.Context) error { |
| 56 | err := ctx.WriteString("ShowMiddlewares => ", ctx.RouterNode().GroupMiddlewares()) |
nothing calls this directly
no test coverage detected