ui: Add json endpoint to list all coin types.

This commit is contained in:
tecnovert
2022-07-25 12:54:58 +02:00
parent 8b09607083
commit 18a444b071
3 changed files with 37 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ from .basicswap_util import (
strAddressType,
)
from .js_server import (
js_coins,
js_error,
js_wallets,
js_offers,
@@ -678,7 +679,8 @@ class HttpHandler(BaseHTTPRequestHandler):
self.putHeaders(status_code, 'text/plain')
func = js_index
if len(url_split) > 2:
func = {'wallets': js_wallets,
func = {'coins': js_coins,
'wallets': js_wallets,
'offers': js_offers,
'sentoffers': js_sentoffers,
'bids': js_bids,