Skip to content

Interface: RouterRegistrationService

Router registration service interface (AdonisJS router type to be defined)

Constructors

Constructor

ts
new RouterRegistrationService(router: Router): this;

Parameters

ParameterType
routerRouter

Returns

this

Methods

registerRoutes()

ts
registerRoutes(routes: GeneratedRoute[], options: NormalizedResourcefulRouterOptions): void;

Parameters

ParameterType
routesGeneratedRoute[]
optionsNormalizedResourcefulRouterOptions

Returns

void