mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Add dummy getregisteredplatformlist endpoint
This commit is contained in:
parent
26828cfa86
commit
9c616130ba
2 changed files with 17 additions and 0 deletions
|
@ -247,6 +247,9 @@ async fn sif_migrate(req: HttpRequest, body: String) -> HttpResponse { router::u
|
||||||
#[post("/api/user/ss/migrate")]
|
#[post("/api/user/ss/migrate")]
|
||||||
async fn sifas_migrate(req: HttpRequest, body: String) -> HttpResponse { router::user::sifas_migrate(req, body) }
|
async fn sifas_migrate(req: HttpRequest, body: String) -> HttpResponse { router::user::sifas_migrate(req, body) }
|
||||||
|
|
||||||
|
#[post("/api/user/getregisteredplatformlist")]
|
||||||
|
async fn getregisteredplatformlist(req: HttpRequest, body: String) -> HttpResponse { router::user::getregisteredplatformlist(req, body) }
|
||||||
|
|
||||||
|
|
||||||
#[post("/api/webui/login")]
|
#[post("/api/webui/login")]
|
||||||
async fn webui_login(req: HttpRequest, body: String) -> HttpResponse { router::webui::login(req, body) }
|
async fn webui_login(req: HttpRequest, body: String) -> HttpResponse { router::webui::login(req, body) }
|
||||||
|
@ -383,6 +386,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.service(migration)
|
.service(migration)
|
||||||
.service(gglrequestmigrationcode)
|
.service(gglrequestmigrationcode)
|
||||||
.service(gglverifymigrationcode)
|
.service(gglverifymigrationcode)
|
||||||
|
.service(getregisteredplatformlist)
|
||||||
.service(serial_code_events)
|
.service(serial_code_events)
|
||||||
.service(gift)
|
.service(gift)
|
||||||
.service(gift_get)
|
.service(gift_get)
|
||||||
|
|
|
@ -385,6 +385,19 @@ pub fn sif_migrate(_req: HttpRequest, _body: String) -> HttpResponse {
|
||||||
global::send(resp)
|
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 {
|
pub fn initialize(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
let key = global::get_login(req.headers(), &body);
|
let key = global::get_login(req.headers(), &body);
|
||||||
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
|
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
|
||||||
|
|
Loading…
Add table
Reference in a new issue