dev: misc improve here and there

This commit is contained in:
2026-03-26 21:47:10 +01:00
parent 90dde65c91
commit afc5e94adf
3 changed files with 9 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
use std::io;
use actix_web::{App, HttpServer, web};
use actix_web::{App, HttpServer, middleware, web};
pub mod caches;
pub mod services;
@@ -38,9 +38,8 @@ pub async fn start_app(args: crate::args::Args, config: crate::conf::Config) ->
HttpServer::new(move || {
App::new()
.app_data(app)
.wrap(actix_web::middleware::Logger::new(
"%a (%{r}a) %r -> %s, %b B in %T s",
))
.wrap(middleware::Logger::new("%a (%{r}a) %r -> %s, %b B in %T s"))
.wrap(middleware::NormalizePath::trim())
.service(services::images::make_scope(ws::IMAGES))
.default_service(web::to(services::not_found::not_found))
})