import { IAPIInfo } from '../../../shared/models/IAPIInfo' ; import config from '../config/main' ; export class APIInfo implements IAPIInfo { sentryDsn : string ; status : string ; nonProductionWarning : string ; build_timestamp : Date ; commit_hash : string ; teacherMailRegex : string ; constructor ( status ) { this . status = status ; this . nonProductionWarning = config . nonProductionWarning ; this . sentryDsn = config . sentryDsnPublic ; this . build_timestamp = undefined ; this . commit_hash = undefined ; this . teacherMailRegex = config . teacherMailRegex ; } }