Implement dummy /api/live/mission

This commit is contained in:
Ethan O'Brien
2024-04-08 17:26:28 -05:00
parent 3fe1401046
commit fc9d627005
2 changed files with 19 additions and 1 deletions

View File

@ -20,7 +20,6 @@ pub fn retire(_req: HttpRequest, _body: String) -> HttpResponse {
}
pub fn guest(_req: HttpRequest, _body: String) -> HttpResponse {
let resp = object!{
"code": 0,
"server_time": global::timestamp(),
@ -29,6 +28,21 @@ pub fn guest(_req: HttpRequest, _body: String) -> HttpResponse {
global::send(resp)
}
pub fn mission(_req: HttpRequest, _body: String) -> HttpResponse {
//todo
let resp = object!{
"code": 0,
"server_time": global::timestamp(),
"data": {
"score_ranking": "",
"combo_ranking": "",
"clear_count_ranking": ""
}
};
global::send(resp)
}
pub fn start(_req: HttpRequest, _body: String) -> HttpResponse {
let resp = object!{
"code": 0,