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">
<div class="block-header">Debug Info</div> <div class="block-header">Debug Info</div>
<div class="block-content"> <div class="block-content">
<div class="row">
<pre [innerHtml]="(debugInfo$ | async) | prettyprint">
</pre>
</div>
<div class="row"> <div class="row">
API Host: {{apiHost}} API Host: {{apiHost}}
<br /> SignalR Host: {{signalrHost}} <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> </div>
</div> </div>

View File

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

View File

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

Binary file not shown.