use dioxus_interpreter_js::INTERPRETER_JS;
use std::{
borrow::Cow,
path::{Path, PathBuf},
};
use wry::{
http::{status::StatusCode, Request, Response},
Result,
};
fn module_loader(root_name: &str) -> String {
format!(
r#"
"#
)
}
pub(super) fn desktop_handler(
request: &Request>,
custom_head: Option,
custom_index: Option,
root_name: &str,
) -> Result>> {
// If the request is for the root, we'll serve the index.html file.
if request.uri().path() == "/" {
// If a custom index is provided, just defer to that, expecting the user to know what they're doing.
// we'll look for the closing