{ "/api": { "target": "http://localhost:5000", "secure": false, "pathRewrite": { "^/api": "" } }}
ngOnInit() { this.msg$ = this.http.get("/api/ng7", { responseType: "text", }); }
@Controller()export class AppController { @Get('ng7') ng7(): string { return 'hello ng7'; }}