feat: default service handler, lets all love lain

This commit is contained in:
2026-03-21 17:41:36 +01:00
parent 4fdd2b7134
commit 36dd65c144
11 changed files with 237 additions and 14 deletions

View File

@@ -38,6 +38,7 @@ pub async fn start_app(args: crate::args::Args, config: crate::conf::Config) ->
App::new()
.app_data(web::Data::new(app))
.service(services::images::make_scope(ws::IMAGES))
.default_service(web::to(services::not_found::not_found))
})
.bind(&app.config.server.listen)?
.run()