mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
add CustomPathWordFunc
This commit is contained in:
@@ -37,6 +37,9 @@ type Application struct {
|
||||
// Disables verbose logging for controllers under this and its children mvc apps.
|
||||
// Defaults to false.
|
||||
controllersNoLog bool
|
||||
|
||||
// Set custom path
|
||||
customPathWordFunc CustomPathWordFunc
|
||||
}
|
||||
|
||||
func newApp(subRouter router.Party, container *hero.Container) *Application {
|
||||
@@ -119,6 +122,11 @@ func (app *Application) SetName(appName string) *Application {
|
||||
return app
|
||||
}
|
||||
|
||||
func (app *Application) SetCustomPathWordFunc(wordFunc CustomPathWordFunc) *Application {
|
||||
app.customPathWordFunc = wordFunc
|
||||
return app
|
||||
}
|
||||
|
||||
// SetControllersNoLog disables verbose logging for next registered controllers
|
||||
// under this App and its children of `Application.Party` or `Application.Clone`.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user