|
@ -8,7 +8,7 @@ use actix_web::http::StatusCode; |
|
|
use bytes::{Buf, Bytes, IntoBuf};
|
|
|
use bytes::{Buf, Bytes, IntoBuf};
|
|
|
use futures::future::Future;
|
|
|
use futures::future::Future;
|
|
|
|
|
|
|
|
|
use server::error::APIError;
|
|
|
|
|
|
|
|
|
use crate::server::error::APIError;
|
|
|
|
|
|
|
|
|
pub fn route(scope: Scope<()>) -> Scope<()> {
|
|
|
pub fn route(scope: Scope<()>) -> Scope<()> {
|
|
|
scope.resource("address", |r| r.method(Method::GET).f(get_address))
|
|
|
scope.resource("address", |r| r.method(Method::GET).f(get_address))
|
|
|