motd now application/json

This commit is contained in:
Shiroyasha 2024-09-18 13:55:11 +03:00
parent 325a73da5a
commit f0599aec9e
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A

View file

@ -26,8 +26,8 @@ pub async fn version(State(state): State<AppState>) -> Json<FiguraVersions> {
}
}
pub async fn motd(State(state): State<AppState>) -> String {
serde_json::to_string_pretty(&get_motd(state).await).unwrap()
pub async fn motd(State(state): State<AppState>) -> Json<Vec<crate::utils::Motd>> {
Json(get_motd(state).await)
}
pub async fn limits(State(state): State<AppState>) -> Json<Value> {