mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 04:51:13 +03:00
30 lines
667 B
Rust
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]
|
|
}
|
|
}
|
|
}))
|
|
}
|