Skip to content

Commit

Permalink
Add compression support
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Sep 17, 2024
1 parent 769a6b5 commit 687e11e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fplus-http-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ use middleware::verifier_auth::VerifierAuth;
pub(crate) mod router;
use std::env;

use actix_web::{middleware::Logger, web, App, HttpServer};
use actix_web::{
middleware::{Compress, Logger},
web, App, HttpServer,
};

use chrono::Utc;
use cron::Schedule;
Expand Down Expand Up @@ -65,6 +68,7 @@ async fn main() -> std::io::Result<()> {
.allow_any_method()
.allow_any_header();
App::new()
.wrap(Compress::default())
.wrap(Logger::default())
.wrap(cors)
.service(router::health)
Expand Down

0 comments on commit 687e11e

Please sign in to comment.