added timestamps to messages

This commit is contained in:
2025-12-15 17:33:13 +01:00
parent 68e093f388
commit 5c3cfdafe4
6 changed files with 62 additions and 14 deletions

View File

@@ -150,7 +150,9 @@ pub async fn register_user(
))
}
async fn validate_token(headers: HeaderMap) -> Result<String, (StatusCode, String)> {
async fn validate_token(
headers: HeaderMap,
) -> Result<Json<serde_json::Value>, (StatusCode, String)> {
let _ = verify_jwt(headers)?;
Ok(String::from("OK"))
Ok(Json(serde_json::json!({"valid": true})))
}