Function to register routes for this group.
Function to register routes for this group.
The route prefix of this group.
Readonly
groupFunction to register routes for this group.
Protected
postflightReadonly
prefixThe route prefix of this group.
Protected
preflightStatic
Private
currentThe current set of nested groups. This is used when compiling route groups.
Static
Protected
namedMapping of group names to group registration functions.
Private
appThe global application instance.
Protected
appGet the global Application.
Protected
containerGet the method with the given name from this class, bound to this class.
function
Get the method with the given name from this class, bound to this class.
function
Rest
...args: any[]Protected
makeRegister the given middleware to be applied after all routes in this group.
Register the given middleware to be applied before all routes in this group.
Static
getGet the current group nesting.
Static
includeStatic
namedCreate a new named group that can be registered at a later time, by name.
RouteGroup.named('auth', () => {
Route.group('/auth', () => {
Route.get('/login', 'auth:Forms.getLogin')
})
})
Class that defines a group of Routes in the application, with a prefix.