diff --git a/src/server/api.rs b/src/server/api.rs index f8224e4..1dc1f6d 100644 --- a/src/server/api.rs +++ b/src/server/api.rs @@ -6,7 +6,8 @@ use futures::future::Future; use std::io::Read; pub fn route(scope: Scope<()>) -> Scope<()> { - scope.nested("{root}/{zone}", |zone_scope| { + scope.resource("address", |r| r.method(Method::GET).f(get_address)) + .nested("{root}/{zone}", |zone_scope| { zone_scope .resource("", |r| r.method(Method::GET).f(get_address)) .resource("update", |r| {