mirror of
https://github.com/mempool/mempool.git
synced 2026-08-16 13:00:49 +02:00
Add basic API documentation for all electrs endpoints
This commit is contained in:
parent
7bf9810c48
commit
fb9b3202ca
3 changed files with 222 additions and 27 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { StateService } from 'src/app/services/state.service';
|
||||
import { WebsocketService } from 'src/app/services/websocket.service';
|
||||
import { Observable, merge, of } from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'app-api-docs',
|
||||
|
|
@ -9,6 +10,7 @@ import { WebsocketService } from 'src/app/services/websocket.service';
|
|||
})
|
||||
export class ApiDocsComponent implements OnInit {
|
||||
hostname = document.location.hostname;
|
||||
network$: Observable<string>;
|
||||
active = 1;
|
||||
|
||||
constructor(
|
||||
|
|
@ -17,6 +19,7 @@ export class ApiDocsComponent implements OnInit {
|
|||
) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.network$ = merge(of(''), this.stateService.networkChanged$);
|
||||
this.websocketService.want(['blocks']);
|
||||
|
||||
if (this.stateService.network === 'bisq') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue