mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-22 09:18:08 +00:00
Added back debug info
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -30,6 +30,7 @@ export class DebugComponent implements OnInit {
|
||||
) {}
|
||||
ngOnInit() {
|
||||
this._debugService.ping().subscribe(r => (this.pingPong = r));
|
||||
this.debugInfo$ = this._debugService.getDebugInfo();
|
||||
}
|
||||
|
||||
subscribeToServerPush() {
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user