1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

.DI() to ConfigureContainer(...builders)

Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-17 15:56:36 +03:00
parent eafa63da50
commit 1bb76853a9
12 changed files with 108 additions and 65 deletions

View File

@@ -22,6 +22,8 @@ func handler(id int, in testInput) testOutput {
func main() {
app := iris.New()
app.DI().Post("/{id:int}", handler)
app.ConfigureContainer(func(api *iris.APIContainer) {
api.Post("/{id:int}", handler)
})
app.Listen(":8080")
}