()
| 121 | } |
| 122 | |
| 123 | public applyOptions() { |
| 124 | if (!this.appOptions || !this.appOptions.cors) { |
| 125 | return undefined; |
| 126 | } |
| 127 | const passCustomOptions = |
| 128 | isObject(this.appOptions.cors) || isFunction(this.appOptions.cors); |
| 129 | if (!passCustomOptions) { |
| 130 | return this.enableCors(); |
| 131 | } |
| 132 | return this.enableCors(this.appOptions.cors); |
| 133 | } |
| 134 | |
| 135 | public createServer<T = any>(): T { |
| 136 | this.httpAdapter.initHttpServer(this.appOptions); |
no test coverage detected