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