Constructors
Methods
baseUrl
- baseUrl(): string
Returns string
createRouter
- createRouter(path?, useMiddleWare?): Router
Parameters
- path: string = '/addon'
- useMiddleWare: boolean = true
Returns Router
Router
getApp
- getApp(): Express
Returns Express
The express app
getConnection
- getConnection(): KitsasConnectionInterface
Returns KitsasConnectionInterface
start
- start(routers): void
Returns void
Kitsas Addon Class
First create an instance of this class, add all the routers and then call the start method.