Add endpoint to set server time

This commit is contained in:
Ethan O'Brien
2024-05-04 18:11:20 -05:00
parent 05aecd02c6
commit 42bdc28d0f
24 changed files with 169 additions and 106 deletions

View File

@@ -39,7 +39,7 @@ pub fn asset_hash(req: HttpRequest, body: String) -> HttpResponse {
"asset_hash": get_asset_hash(&req, &body)
}
};
global::send(resp)
global::send(resp, req)
}
pub fn start(req: HttpRequest, body: String) -> HttpResponse {
@@ -61,5 +61,5 @@ pub fn start(req: HttpRequest, body: String) -> HttpResponse {
"token": hex::encode("Hello") //what is this?
}
};
global::send(resp)
global::send(resp, req)
}