This commit is contained in:
minish 2025-12-05 01:28:39 -05:00
parent 5c0517d131
commit daa46f9872
Signed by: min
SSH Key Fingerprint: SHA256:mf+pUTmK92Y57BuCjlkBdd82LqztTfDCQIUp0fCKABc
3 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
use std::{path::PathBuf, time::Duration};
use serde::Deserialize;
use serde_with::{serde_as, DisplayFromStr, DurationSeconds};
use serde_with::{DisplayFromStr, DurationSeconds, serde_as};
use tracing_subscriber::filter::LevelFilter;
#[derive(Deserialize)]

View File

@ -1,4 +1,4 @@
use std::sync::{atomic::Ordering, Arc};
use std::sync::{Arc, atomic::Ordering};
use axum::extract::State;
@ -12,6 +12,7 @@ pub async fn index(State(engine): State<Arc<crate::engine::Engine>>) -> String {
.replace("%uplcount%", &count.to_string())
}
#[rustfmt::skip]
pub async fn robots_txt() -> &'static str {
/// robots.txt that tells web crawlers not to list uploads
const ROBOTS_TXT: &str = concat!(

View File

@ -1,12 +1,12 @@
use std::{path::PathBuf, sync::Arc};
use argh::FromArgs;
use color_eyre::eyre::{self, bail, Context};
use color_eyre::eyre::{self, Context, bail};
use engine::Engine;
use axum::{
routing::{get, post},
Router,
routing::{get, post},
};
use tokio::{fs, net::TcpListener, signal};
use tracing::{info, warn};