mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-08 16:37:20 +08:00
Return an ok response from the debug endpoint
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use json::{JsonValue};
|
use json::{JsonValue, object};
|
||||||
use actix_web::{HttpRequest};
|
use actix_web::{HttpRequest};
|
||||||
|
|
||||||
use crate::encryption;
|
use crate::encryption;
|
||||||
@@ -8,5 +8,5 @@ pub fn error(_req: HttpRequest, body: String) -> Option<JsonValue> {
|
|||||||
|
|
||||||
println!("client error: {}", body["code"]);
|
println!("client error: {}", body["code"]);
|
||||||
|
|
||||||
None
|
Some(object!{})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user