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

@@ -31,7 +31,7 @@ pub fn shop(req: HttpRequest) -> HttpResponse {
"shop_list": user["shop_list"].clone()
}
};
global::send(resp)
global::send(resp, req)
}
pub fn buy(req: HttpRequest, body: String) -> HttpResponse {
@@ -60,5 +60,5 @@ pub fn buy(req: HttpRequest, body: String) -> HttpResponse {
}
}
};
global::send(resp)
global::send(resp, req)
}