Implement dummy /api/live/mission
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user