UNPKG

@central-credit/app

Version:

Application Central Credit

39 lines (34 loc) 1.11 kB
import { BootMixin } from '@loopback/boot' import { ApplicationConfig } from '@loopback/core' import { RestExplorerBindings, RestExplorerComponent } from '@loopback/rest-explorer' import { RepositoryMixin } from '@loopback/repository' import { RestApplication } from '@loopback/rest' import { ServiceMixin } from '@loopback/service-proxy' import { MySequence } from './sequence' export class OracleCreditApplication extends BootMixin( ServiceMixin(RepositoryMixin(RestApplication)) ) { constructor(options: ApplicationConfig = {}) { super(options) // Set up the custom sequence this.sequence(MySequence) // Customize @loopback/rest-explorer configuration here this.bind(RestExplorerBindings.CONFIG).to({ path: '/explorer' }) this.component(RestExplorerComponent) this.projectRoot = __dirname // Customize @loopback/boot Booter Conventions here this.bootOptions = { controllers: { // Customize ControllerBooter Conventions here dirs: ['controllers'], extensions: ['.controller.js'], nested: true } } } }