Files
ew_author/src/router/debug.rs
2024-05-24 12:44:52 -05:00

13 lines
297 B
Rust

use json::{JsonValue};
use actix_web::{HttpRequest};
use crate::encryption;
pub fn error(req: HttpRequest, body: String) -> Option<JsonValue> {
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
println!("client error: {}", body["code"]);
None
}