Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust_rest_api"
version = "0.4.0"
version = "0.4.1"
edition = "2024"
license = "MIT"
authors = ["Habibi-Dev"]
Expand Down

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/assets/index-C2f6evCj.css

This file was deleted.

1 change: 1 addition & 0 deletions src/assets/index-DI4lHdrK.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/services/coin_ir/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub async fn response_coin() -> Json<ApiResponse<serde_json::Value>> {
"bahar": data.bahar,
"nim": data.nim,
"rob": data.rob,
"currency": "irr",
"source": "tgju.org",
"sync_at": data.sync_at,
});
Expand Down
1 change: 1 addition & 0 deletions src/services/crypto/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub async fn response_crypto_ir() -> Json<ApiResponse<serde_json::Value>> {
"usd": data.crypto_usd_coin_irr,
"dogecoin": data.crypto_dogecoin_irr,
"tron": data.crypto_tron_irr,
"currency": "irr",
"source": "tgju.org",
"sync_at": data.sync_at,
});
Expand Down
1 change: 1 addition & 0 deletions src/services/currency/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub async fn response_currency_ir() -> Json<ApiResponse<serde_json::Value>> {
"aed": data.price_aed,
"gbp": data.price_gbp,
"try": data.price_try,
"currency": "irr",
"source": "tgju.org",
"sync_at": data.sync_at,
});
Expand Down
1 change: 1 addition & 0 deletions src/services/gold_ir/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub async fn response_gold() -> Json<ApiResponse<serde_json::Value>> {
"gold_24": data.gold_24,
"mesghal": data.mesghal,
"used_gold": data.used_gold,
"currency": "irr",
"source": "tgju.org",
"sync_at": data.sync_at,
});
Expand Down
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{{ title }}</title>
<script type="module" crossorigin src="/assets/index-DqpVWQNW.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C2f6evCj.css">
<script type="module" crossorigin src="/assets/index-BurBRcSO.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DI4lHdrK.css">
<script>
window.options = {
service: {
Expand Down