summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/handlers/setup.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui/handlers/setup.rs b/src/ui/handlers/setup.rs
index 49821cf..5707765 100644
--- a/src/ui/handlers/setup.rs
+++ b/src/ui/handlers/setup.rs
@@ -4,14 +4,13 @@ use axum::{
};
use crate::{
- app::App,
error::Internal,
+ setup::app::Setup,
ui::assets::{Asset, Assets},
};
-pub async fn handler(State(app): State<App>) -> Result<Asset, Error> {
- if app
- .setup()
+pub async fn handler(State(setup): State<Setup>) -> Result<Asset, Error> {
+ if setup
.completed()
.await
.map_err(Internal::from)