mirror of
https://github.com/sadoyan/aralez.git
synced 2026-04-30 14:58:38 +08:00
Intermediate v2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::utils::tools::*;
|
||||
use axum::body::Body;
|
||||
use axum::http::{Response, StatusCode};
|
||||
use axum::response::IntoResponse;
|
||||
@@ -17,7 +18,7 @@ struct UpstreamData {
|
||||
counter: usize,
|
||||
}
|
||||
|
||||
pub async fn run_server(mut toreturn: Sender<DashMap<String, (Vec<(String, u16)>, AtomicUsize)>>) {
|
||||
pub async fn run_server(mut toreturn: Sender<UpstreamMap>) {
|
||||
let mut tr = toreturn.clone();
|
||||
let app = Router::new()
|
||||
.route("/{*wildcard}", get(getconfig))
|
||||
|
||||
Reference in New Issue
Block a user