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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user