Add dummy getregisteredplatformlist endpoint

This commit is contained in:
Ethan O'Brien
2024-05-04 12:16:41 -05:00
parent 26828cfa86
commit 9c616130ba
2 changed files with 17 additions and 0 deletions

View File

@ -385,6 +385,19 @@ pub fn sif_migrate(_req: HttpRequest, _body: String) -> HttpResponse {
global::send(resp)
}
pub fn getregisteredplatformlist(_req: HttpRequest, _body: String) -> HttpResponse {
let resp = object!{
"code": 0,
"server_time": global::timestamp(),
"data": {
"google": 0,
"apple": 0,
"twitter": 0
}
};
global::send(resp)
}
pub fn initialize(req: HttpRequest, body: String) -> HttpResponse {
let key = global::get_login(req.headers(), &body);
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();