commit 300888f21cdefe8cb578c1c7d76ff80351267fb9
parent 317d405432982d2e102d3841ad69cbe75a18466f
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 19 Feb 2020 11:47:43 +0100
fix path for payserver static files
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/daemon.py b/electrum/daemon.py
@@ -198,7 +198,7 @@ class PayServer(Logger):
app.add_routes([web.get('/api/get_invoice', self.get_request)])
app.add_routes([web.get('/api/get_status', self.get_status)])
app.add_routes([web.get('/bip70/{key}.bip70', self.get_bip70_request)])
- app.add_routes([web.static(root, 'electrum/www')])
+ app.add_routes([web.static(root, os.path.join(os.path.dirname(__file__), 'www'))])
runner = web.AppRunner(app)
await runner.setup()
site = web.TCPSite(runner, port=port, host=host, ssl_context=self.config.get_ssl_context())