feat(tor): add Tor endpoints for fiat-api and service-api (#2339)

This commit is contained in:
cyan
2025-06-27 15:05:54 +03:00
committed by GitHub
parent 1a5601f755
commit 73588071ba
2 changed files with 12 additions and 8 deletions
@@ -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;
}