sculptor/src/info.rs
shiroyashik b280da2742
Оно работает!
Почищу код позже...
2024-05-17 11:00:37 +03:00

30 lines
667 B
Rust

use axum::Json;
use serde_json::{json, Value};
pub async fn version() -> Json<Value> {
Json(json!({
"release": "1.7.1",
"prerelease": "1.7.2"
}))
}
pub async fn limits() -> Json<Value> {
Json(json!({
"rate": {
"pingSize": 1024,
"pingRate": 32, // TODO: Проверить
"equip": 1,
"download": 50,
"upload": 1
},
"limits": {
"maxAvatarSize": 100000,
"maxAvatars": 10,
"allowedBadges": {
"special": [0,0,0,0,0,0],
"pride": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
}
}
}))
}