mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
dependency injection: func (...<T>) iris.Handler can be generated to a simple iris handler if <T> are static dependencies
This commit is contained in:
@@ -933,7 +933,7 @@ type (
|
||||
// }
|
||||
// Usage with (static) dependencies:
|
||||
// app.RegisterDependency(userRepo, ...)
|
||||
// app.PartyConfigure("/users", &api.UsersAPI{})
|
||||
// app.PartyConfigure("/users", new(api.UsersAPI))
|
||||
func (api *APIBuilder) PartyConfigure(relativePath string, partyReg ...PartyConfigurator) Party {
|
||||
var child Party
|
||||
|
||||
|
||||
Reference in New Issue
Block a user