diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs index 1e938862..a3033916 100644 --- a/src/bin/proxmox-backup-proxy.rs +++ b/src/bin/proxmox-backup-proxy.rs @@ -56,6 +56,7 @@ async fn run() -> Result<(), Error> { let mut indexpath = PathBuf::from(buildcfg::JS_DIR); indexpath.push("index.hbs"); config.register_template("index", &indexpath)?; + config.register_template("console", "/usr/share/pve-xtermjs/index.html.hbs")?; let rest_server = RestServer::new(config); diff --git a/src/server/rest.rs b/src/server/rest.rs index a7b0a231..09b68489 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -319,11 +319,14 @@ fn get_index(username: Option, token: Option, api: &Arc, token: Option, api: &Arc index, Err(err) => { ct = "text/plain"; format!("Error rendering template: {}", err) - }, + } }; Response::builder()