server/rest: add console to index
register the console template and render it when the 'console' parameter is given Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
1c2f842a98
commit
01ca99da2d
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user