Skip to content

Configuration

package()

package() — returns struct

Available in: mapper Category: Routing

Scopes any the controllers for any routes configured within this block to a subfolder (package) without adding the package name to the URL.

NameTypeRequiredDefaultDescription
namestringyesName to prepend to child route names.
packagestringno[runtime expression]Subfolder (package) to reference for controllers. This defaults to the value provided for name.