mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
Оно работает!
Почищу код позже...
This commit is contained in:
parent
3fd49300db
commit
b280da2742
14 changed files with 659 additions and 114 deletions
30
src/info.rs
Normal file
30
src/info.rs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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]
|
||||
}
|
||||
}
|
||||
}))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue