mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-01-12 08:12:36 +08:00
Add endpoint to set server time
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user