import sorting

main
Zynh0722 2023-11-05 11:40:26 -08:00
parent c15046ae30
commit b68746db56
3 changed files with 3 additions and 5 deletions

View File

@ -10,6 +10,7 @@ use axum::{
use cm_lib::{ use cm_lib::{
hx_request::HxRequest, hx_request::HxRequest,
models::{NewDrink, Shift}, models::{NewDrink, Shift},
render,
schema::shifts, schema::shifts,
}; };
use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, SelectableHelper}; use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, SelectableHelper};
@ -19,7 +20,6 @@ use serde::Deserialize;
use tokio_stream::{wrappers::errors::BroadcastStreamRecvError, StreamExt as _}; use tokio_stream::{wrappers::errors::BroadcastStreamRecvError, StreamExt as _};
use crate::AppState; use crate::AppState;
use cm_lib::render;
pub(crate) fn router() -> axum::Router<AppState> { pub(crate) fn router() -> axum::Router<AppState> {
axum::Router::new() axum::Router::new()

View File

@ -2,11 +2,10 @@ mod api;
mod management; mod management;
mod sse_handler; mod sse_handler;
use cm_lib::render;
use cm_lib::{ use cm_lib::{
hx_request::HxRequest, hx_request::HxRequest,
models::{Drink, Shift}, models::{Drink, Shift},
render,
report::GenerateDrinkReport, report::GenerateDrinkReport,
schema::shifts, schema::shifts,
}; };

View File

@ -1,9 +1,8 @@
use axum::{response::IntoResponse, routing::get}; use axum::{response::IntoResponse, routing::get};
use cm_lib::render;
use crate::AppState; use crate::AppState;
use cm_lib::render;
pub(crate) fn router() -> axum::Router<AppState> { pub(crate) fn router() -> axum::Router<AppState> {
axum::Router::new() axum::Router::new()
.route("/", get(home)) .route("/", get(home))