mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-24 06:48:38 +02:00
feat(tor): add Tor endpoints for fiat-api and service-api (#2339)
This commit is contained in:
@@ -1123,13 +1123,18 @@ abstract class DashboardViewModelBase with Store {
|
||||
Future<ServicesResponse> _getServicesStatus() async {
|
||||
try {
|
||||
if (isEnabledBulletinAction) {
|
||||
final uri = Uri.https(
|
||||
"service-api.cakewallet.com",
|
||||
"/v1/active-notices",
|
||||
{'key': secrets.fiatApiKey},
|
||||
final res = await ProxyWrapper().get(
|
||||
clearnetUri: Uri.https(
|
||||
"service-api.cakewallet.com",
|
||||
"/v1/active-notices",
|
||||
{'key': secrets.fiatApiKey},
|
||||
),
|
||||
onionUri: Uri.http(
|
||||
"jpirgl4lrwzjgdqj2nsv3g7twhp2efzty5d3cnypktyczzqfc5qcwwyd.onion",
|
||||
"/v1/active-notices",
|
||||
{'key': secrets.fiatApiKey},
|
||||
),
|
||||
);
|
||||
|
||||
final res = await ProxyWrapper().get(clearnetUri: uri);
|
||||
if (res.statusCode < 200 || res.statusCode >= 300) {
|
||||
throw res.body;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user