import { BootMixin } from '@loopback/boot' ; import { ApplicationConfig } from '@loopback/core' ; import { RepositoryMixin } from '@loopback/repository' ; import { RestApplication } from '@loopback/rest' ; import * as path from 'path' ; import { NotificationServiceComponent } from './component' ; export { ApplicationConfig } ; export class NotificationServiceApplication extends BootMixin ( RepositoryMixin ( RestApplication ) ) { constructor ( options = { } ) { super ( options ) ; this . static ( '/' , path . join ( __dirname , '../public' ) ) ; this . component ( NotificationServiceComponent ) ; this . projectRoot = __dirname ; this . bootOptions = { controllers : { dirs : [ 'controllers' ] , extensions : [ '.controller.js' ] , nested : true , } , } ; } }