Added back debug info

This commit is contained in:
Fergal Moran
2018-03-27 19:10:47 +01:00
parent 3c77bd08f2
commit 0d20d04ae0
4 changed files with 9 additions and 7 deletions

View File

@@ -24,14 +24,14 @@
<div class="block">
<div class="block-header">Debug Info</div>
<div class="block-content">
<div class="row">
<pre [innerHtml]="(debugInfo$ | async) | prettyprint">
</pre>
</div>
<div class="row">
API Host: {{apiHost}}
<br /> SignalR Host: {{signalrHost}}
<br /> Ping: {{pingPong}} </div>
<br /> Ping: {{pingPong}}
</div>
<div class="row">
<pre [innerHtml]="(debugInfo$ | async) | prettyprint"></pre>
</div>
</div>
</div>
</div>

View File

@@ -30,6 +30,7 @@ export class DebugComponent implements OnInit {
) {}
ngOnInit() {
this._debugService.ping().subscribe(r => (this.pingPong = r));
this.debugInfo$ = this._debugService.getDebugInfo();
}
subscribeToServerPush() {

View File

@@ -1,10 +1,11 @@
using Microsoft.AspNetCore.Mvc;
namespace server.Controllers {
namespace PodNoms.Api.Controllers {
[Route("[controller]")]
public class PingController : Controller {
[HttpGet]
public string Get() {
return "Pong";
}
}
}
}

Binary file not shown.