mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-09 17:07:20 +08:00
Add endpoint to set server time
This commit is contained in:
@@ -24,13 +24,13 @@ lazy_static! {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn exchange(_req: HttpRequest) -> HttpResponse {
|
||||
pub fn exchange(req: HttpRequest) -> HttpResponse {
|
||||
let resp = object!{
|
||||
"code": 0,
|
||||
"server_time": global::timestamp(),
|
||||
"data": {"exchange_list":[]}
|
||||
};
|
||||
global::send(resp)
|
||||
global::send(resp, req)
|
||||
}
|
||||
|
||||
pub fn exchange_post(req: HttpRequest, body: String) -> HttpResponse {
|
||||
@@ -66,5 +66,5 @@ pub fn exchange_post(req: HttpRequest, body: String) -> HttpResponse {
|
||||
"clear_mission_ids": []
|
||||
}
|
||||
};
|
||||
global::send(resp)
|
||||
global::send(resp, req)
|
||||
}
|
||||
|
Reference in New Issue
Block a user