Browse Source

Added address endpoint to print requester address

develop
Drew Short 6 years ago
parent
commit
a9c0050ce6
  1. 3
      src/server/api.rs

3
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| {

Loading…
Cancel
Save