import HtmlEndpoint from 'endpoint/html'; import LoginPageTemplate from 'template/page/login'; class HtmlLoginEndpoint extends HtmlEndpoint> { protected async process(): Promise { const account = this.getAccount(); const template = new LoginPageTemplate({ account }); const html = template.render(); return Promise.resolve(html); } } export default HtmlLoginEndpoint;