diff --git a/src/api.rs b/src/api.rs index 5da1ff2..71b245b 100644 --- a/src/api.rs +++ b/src/api.rs @@ -10,6 +10,7 @@ use axum::{ use cm_lib::{ hx_request::HxRequest, models::{NewDrink, Shift}, + render, schema::shifts, }; use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, SelectableHelper}; @@ -19,7 +20,6 @@ use serde::Deserialize; use tokio_stream::{wrappers::errors::BroadcastStreamRecvError, StreamExt as _}; use crate::AppState; -use cm_lib::render; pub(crate) fn router() -> axum::Router { axum::Router::new() diff --git a/src/main.rs b/src/main.rs index 9036b6f..3c84eb8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,11 +2,10 @@ mod api; mod management; mod sse_handler; -use cm_lib::render; - use cm_lib::{ hx_request::HxRequest, models::{Drink, Shift}, + render, report::GenerateDrinkReport, schema::shifts, }; diff --git a/src/management.rs b/src/management.rs index bf990b8..3d6d363 100644 --- a/src/management.rs +++ b/src/management.rs @@ -1,9 +1,8 @@ use axum::{response::IntoResponse, routing::get}; +use cm_lib::render; use crate::AppState; -use cm_lib::render; - pub(crate) fn router() -> axum::Router { axum::Router::new() .route("/", get(home))