forked from Zynh0722/nyazoom
the great util immigration
parent
7fb872b166
commit
9bc5067bef
|
@ -13,8 +13,6 @@ use axum_extra::TypedHeader;
|
|||
|
||||
use futures::TryStreamExt;
|
||||
|
||||
use nyazoom_headers::ForwardedFor;
|
||||
|
||||
use sanitize_filename_reader_friendly::sanitize;
|
||||
|
||||
use std::{io, net::SocketAddr, path::Path};
|
||||
|
@ -27,14 +25,12 @@ use tokio_util::{
|
|||
use tower_http::{limit::RequestBodyLimitLayer, services::ServeDir, trace::TraceLayer};
|
||||
|
||||
mod cache;
|
||||
mod logging;
|
||||
mod nyazoom_headers;
|
||||
mod ssr;
|
||||
mod state;
|
||||
mod sweeper;
|
||||
mod util;
|
||||
mod views;
|
||||
|
||||
use util::{headers::ForwardedFor, logging, ssr, sweeper};
|
||||
|
||||
use state::{AppState, UploadRecord};
|
||||
|
||||
use crate::state::*;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
pub mod headers;
|
||||
pub mod logging;
|
||||
pub mod ssr;
|
||||
pub mod sweeper;
|
||||
|
||||
use rand::{
|
||||
distributions::{Alphanumeric, DistString},
|
||||
rngs::SmallRng,
|
||||
|
|
Loading…
Reference in New Issue