Skip to content

Commit da7cc2c

Browse files
committed
fix: properly plug in compression layer
1 parent 40d9444 commit da7cc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/rest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ pub(crate) async fn serve_rest_endpoint(
9191
.route("/api/data_raw", get(data_raw))
9292
.layer(CorsLayer::permissive())
9393
.nest_service("/api/log", ServeFile::new(config.log_location.clone()))
94-
.layer(CompressionLayer::new().deflate(true))
9594
.route("/*path", get(static_path))
95+
.layer(CompressionLayer::new().deflate(true))
9696
.fallback(index_handler)
9797
.with_state(app_state);
9898

0 commit comments

Comments
 (0)