Skip to content

Configuration

namespace()

namespace() — returns struct

Available in: mapper Category: Routing

Scopes any the controllers for any routes configured within this block to a subfolder (package) and also adds 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.
pathstringno[runtime expression]Subfolder path to add to the URL.