mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Replace controller's .Register with .Handle and AddDependencies with .Register in order to be aligned with the 'hero' package, all examples and docs are updated, it's crazy how I can't stop even on Christmas
Former-commit-id: 3b42963e9806e327ee42942cf156bda6059eaf8f
This commit is contained in:
@@ -36,12 +36,12 @@ func configureMVC(app *mvc.Application) {
|
||||
Expires: 24 * time.Hour,
|
||||
})
|
||||
|
||||
userApp := app.NewChild(app.Router.Party("/user"))
|
||||
userApp.AddDependencies(
|
||||
userApp := app.Party("/user")
|
||||
userApp.Register(
|
||||
user.NewDataSource(),
|
||||
manager.Start,
|
||||
)
|
||||
userApp.Register(new(user.Controller))
|
||||
userApp.Handle(new(user.Controller))
|
||||
}
|
||||
|
||||
func configure(app *iris.Application) {
|
||||
|
||||
Reference in New Issue
Block a user