mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-26 19:28:01 +00:00
Added back debug info
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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.
Reference in New Issue
Block a user