improve router debug

This commit is contained in:
yggverse 2025-07-04 12:15:13 +03:00
parent 8c742ed9a1
commit c096cace3b
3 changed files with 31 additions and 15 deletions

View file

@ -1,7 +1,10 @@
use std::path::PathBuf;
/// Internal server response types
pub enum Response<'a> {
AccessDenied {
path: std::path::PathBuf,
canonical: PathBuf,
path: PathBuf,
query: &'a str,
},
InternalServerError {
@ -10,6 +13,7 @@ pub enum Response<'a> {
},
NotFound {
error: String,
path: PathBuf,
query: &'a str,
},
File(&'a [u8]),