From 8ed43c86253f32f3569adcab8e5cf2028779a4dd Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Fri, 18 Oct 2024 22:27:47 -0500 Subject: [PATCH] Return an ok response from the debug endpoint --- src/router/debug.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/debug.rs b/src/router/debug.rs index 9994511..9bcfb1d 100644 --- a/src/router/debug.rs +++ b/src/router/debug.rs @@ -1,4 +1,4 @@ -use json::{JsonValue}; +use json::{JsonValue, object}; use actix_web::{HttpRequest}; use crate::encryption; @@ -8,5 +8,5 @@ pub fn error(_req: HttpRequest, body: String) -> Option { println!("client error: {}", body["code"]); - None + Some(object!{}) }