1
0

swapserver: remove /api from url

This commit is contained in:
ThomasV
2023-08-10 10:29:32 +02:00
parent fd10ae3a3b
commit 88883d762c
2 changed files with 5 additions and 5 deletions

View File

@@ -34,10 +34,10 @@ class SwapServer(Logger, EventListener):
@log_exceptions
async def run(self):
app = web.Application()
app.add_routes([web.get('/api/getpairs', self.get_pairs)])
app.add_routes([web.post('/api/createswap', self.create_swap)])
app.add_routes([web.post('/api/createnormalswap', self.create_normal_swap)])
app.add_routes([web.post('/api/addswapinvoice', self.add_swap_invoice)])
app.add_routes([web.get('/getpairs', self.get_pairs)])
app.add_routes([web.post('/createswap', self.create_swap)])
app.add_routes([web.post('/createnormalswap', self.create_normal_swap)])
app.add_routes([web.post('/addswapinvoice', self.add_swap_invoice)])
runner = web.AppRunner(app)
await runner.setup()

View File

@@ -852,7 +852,7 @@ class SimpleConfig(Logger):
elif constants.net == constants.BitcoinTestnet:
default = 'https://swaps.electrum.org/testnet'
else:
default = 'http://localhost:5455/api'
default = 'http://localhost:5455'
return self.SWAPSERVER_URL or default
# config variables ----->