mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
add a shortcut for ConfigureContainer().Use as UseFunc on Party
This commit is contained in:
@@ -100,6 +100,12 @@ type Party interface {
|
||||
//
|
||||
// This method is just a shortcut for the `ConfigureContainer().Handle` one.
|
||||
HandleFunc(method, relativePath string, handlersFn ...interface{}) *Route
|
||||
// UseFunc registers a function which can accept one or more
|
||||
// dependencies (see RegisterDependency) and returns an iris.Handler
|
||||
// or a result of <T> and/or an error.
|
||||
//
|
||||
// This method is just a shortcut of the `ConfigureContainer().Use`.
|
||||
UseFunc(handlersFn ...interface{})
|
||||
|
||||
// GetRelPath returns the current party's relative path.
|
||||
// i.e:
|
||||
|
||||
Reference in New Issue
Block a user