()
| 9 | } |
| 10 | |
| 11 | func newApp() *iris.Application { |
| 12 | app := iris.New() |
| 13 | |
| 14 | app.HandleMany(iris.MethodGet, "/ /api/{page:string suffix(.html)}", handler1) |
| 15 | app.Get("/api/{name:string suffix(.zip)}", handler2) |
| 16 | |
| 17 | return app |
| 18 | } |
| 19 | |
| 20 | func handler1(ctx iris.Context) { |
| 21 | reply(ctx) |
searching dependent graphs…