Faucet arguments as query params

This commit is contained in:
Mononaut committed 2024-05-16 21:17:39 +00:00
1 parent 987def9baa
commit e8dbd777d0
1 file changed
+1 -1
@@ -165,6 +165,6 @@ export class ServicesApiServices {
}
requestTestnet4Coins$(address: string, sats: number) {
return this.httpClient.get<{txid: string}>(`${SERVICES_API_PREFIX}/testnet4/faucet/request/${address}?sats=${sats}`, { responseType: 'json' });
return this.httpClient.get<{txid: string}>(`${SERVICES_API_PREFIX}/testnet4/faucet/request?address=${address}&sats=${sats}`, { responseType: 'json' });
}
}