Updated to lib-humus 0.3 and axum 0.8

This commit is contained in:
Slatian
2025-02-09 14:41:12 +01:00
parent 8d055682b6
commit 2b0c4eb3fb
3 changed files with 25 additions and 59 deletions

View File

@ -290,9 +290,9 @@ async fn main() {
// Initalize axum server
let app = Router::new()
.route("/", get(handle_default_route))
.route("/dig/:name", get(handle_dig_route_with_path))
.route("/ip/:address", get(handle_ip_route_with_path))
.route("/dns_resolver/:resolver", get(handle_dns_resolver_route_with_path))
.route("/dig/{name}", get(handle_dig_route_with_path))
.route("/ip/{address}", get(handle_ip_route_with_path))
.route("/dns_resolver/{resolver}", get(handle_dns_resolver_route_with_path))
.route("/dns_resolver", get(handle_dns_resolver_route))
.route("/ua", get(user_agent_handler))
.route("/hi", get(hello_world_handler))