src/api.js
/**
     * Register all operations to a controller.
     */
Register all operations to a controller.
Register all operations to a controller .
register() {
        this.operationIds.forEach((operationId) => {
            this.api.register(
                operationId,
                this.callback(
                    this.controllers[operationId],
                    this.specification,
                    this.logger
                )
            );
        });
        if (this.controllers?.notFound) {
            this.api.register(
                'notFound',
                this.callback(
                    this.controllers.notFound,
                    this.specification,
                    this.logger
                )
            );
        }
        this.api.init();
    }
register ( ) { this . operationIds . forEach ( ( operationId ) => { this . api . register ( operationId , this . callback ( this . controllers [ operationId ] , this . specification , this . logger ) ) ; } ) ; if ( this . controllers ?. notFound ) { this . api . register ( 'notFound' , this . callback ( this . controllers . notFound , this . specification , this . logger ) ) ; } this . api . init ( ) ; }
Register all operations to a controller.
Register all operations to a controller .