interface IApi { host : string ; getRoute : ( routeName : string ) => string ; } class Api implements IApi { host : string ; constructor ( host ) { this . host = host ; } getRoute ( routeName ) { return `${ this . host }/api/${ routeName }` ; } } const apiRoute = Object . freeze ( new Api ( "http://localhost:3000" ) ) ; export { apiRoute , } ;