mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-17 22:43:33 +02:00
Updated to lib-humus 0.3 and axum 0.8
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user