dev: misc improve here and there
This commit is contained in:
@@ -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))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user