diff --git a/Cargo.toml b/Cargo.toml index e1d0bcf..96daf6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,6 @@ name = "hitman" version = "0.0.1" edition = "2021" -author = "code@ardent.nebcorp.com" description = "A simple webpage hit counter service." keywords = ["counter", "webpage", "web1.0", "90s"] readme = "README.md" diff --git a/src/main.rs b/src/main.rs index d1b69b2..bd92044 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use std::{ use axum::{ extract::{Path, State}, http::{header::REFERER, HeaderMap}, - routing::{get, MethodRouter}, + routing::get, Router, }; use clap::Parser; @@ -89,6 +89,8 @@ async fn get_count( .unwrap_or(1) }; + dbg!(count); + format!("{count}") }