Implement /api/album/sif

This commit is contained in:
Ethan O'Brien
2024-04-11 13:58:41 -05:00
parent 89eaf11414
commit f226ef41eb
3 changed files with 28 additions and 6 deletions

View File

@@ -174,6 +174,9 @@ async fn gglverifymigrationcode(req: HttpRequest, body: String) -> HttpResponse
#[get("/api/serial_code/events")]
async fn serial_code_events(req: HttpRequest) -> HttpResponse { router::serial_code::events(req) }
#[get("/api/album/sif")]
async fn sif_album(req: HttpRequest) -> HttpResponse { router::user::sif(req) }
async fn log_unknown_request(req: HttpRequest, body: String) -> HttpResponse {
if body != String::new() {
println!("{}", encryption::decrypt_packet(&body).unwrap());
@@ -191,6 +194,7 @@ async fn main() -> std::io::Result<()> {
println!("Request: {}", req.path());
srv.call(req)
})
.service(sif_album)
.service(preset)
.service(preset_get)
.service(gree_init)