server: fix serving of frontend after PR #1079 (#1090)

Had changed behaviour to serve the gz compressed wasm package
with the uncompressed handler.
This commit is contained in:
Simon Broeng Jensen
2025-01-29 13:25:03 +01:00
committed by GitHub
parent f46e5375df
commit 1b58ac61f4

View File

@@ -95,10 +95,7 @@ async fn main_js_handler<Backend>(
async fn wasm_handler<Backend>(
data: web::Data<AppState<Backend>>,
) -> actix_web::Result<impl Responder> {
Ok(
actix_files::NamedFile::open_async(data.assets_path.join("pkg/lldap_app_bg.wasm.gz"))
.await?,
)
Ok(actix_files::NamedFile::open_async(data.assets_path.join("pkg/lldap_app_bg.wasm")).await?)
}
async fn wasm_handler_compressed<Backend>(