import { Get , JsonController } from 'routing-controllers' ; import { SettingService } from '../services' ; @ JsonController ( ) export class SettingsController { constructor ( private settingService ) { } swagger swagger @ Get ( '/settings' ) get ( ) { return this . settingService . settings$ . take ( 1 ) . toPromise ( ) ; } }