mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
motd now application/json
This commit is contained in:
parent
325a73da5a
commit
f0599aec9e
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ pub async fn version(State(state): State<AppState>) -> Json<FiguraVersions> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn motd(State(state): State<AppState>) -> String {
|
pub async fn motd(State(state): State<AppState>) -> Json<Vec<crate::utils::Motd>> {
|
||||||
serde_json::to_string_pretty(&get_motd(state).await).unwrap()
|
Json(get_motd(state).await)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn limits(State(state): State<AppState>) -> Json<Value> {
|
pub async fn limits(State(state): State<AppState>) -> Json<Value> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue