Implement ability to add login bonus things in webui

This commit is contained in:
Ethan O'Brien
2024-04-26 22:02:50 -05:00
parent 9ba429d0ae
commit c4d89059f0
7 changed files with 131 additions and 6 deletions

View File

@@ -221,6 +221,9 @@ async fn card_evolve(req: HttpRequest, body: String) -> HttpResponse { router::c
#[post("/api/webui/login")]
async fn webui_login(req: HttpRequest, body: String) -> HttpResponse { router::webui::login(req, body) }
#[post("/api/webui/startLoginbonus")]
async fn webui_start_loginbonus(req: HttpRequest, body: String) -> HttpResponse { router::webui::start_loginbonus(req, body) }
#[get("/api/webui/userInfo")]
async fn webui_user(req: HttpRequest) -> HttpResponse { router::webui::user(req) }
@@ -269,6 +272,7 @@ async fn main() -> std::io::Result<()> {
})
.service(css)
.service(js)
.service(webui_start_loginbonus)
.service(webui_import)
.service(webui_logout)
.service(webui_user)