Add (dummy) lottery endpoint

This commit is contained in:
Ethan O'Brien
2024-04-02 14:48:01 -05:00
parent 68be3978fe
commit a1d73690e6
3 changed files with 22 additions and 2 deletions

View File

@@ -90,8 +90,11 @@ async fn preset(req: HttpRequest, body: String) -> HttpResponse { router::home::
#[post("/api/lottery/get_tutorial")]
async fn lottery_tutorial(req: HttpRequest, body: String) -> HttpResponse { router::lottery::tutorial(req, body) }
#[get("/api/lottery")]
async fn lottery(req: HttpRequest) -> HttpResponse { router::lottery::lottery(req) }
#[post("/api/lottery")]
async fn lottery(req: HttpRequest, body: String) -> HttpResponse { router::lottery::lottery(req, body) }
async fn lottery_post(req: HttpRequest, body: String) -> HttpResponse { router::lottery::lottery_post(req, body) }
#[post("/api/login_bonus")]
async fn login_bonus(req: HttpRequest, body: String) -> HttpResponse { router::login::bonus(req, body) }
@@ -152,6 +155,7 @@ async fn main() -> std::io::Result<()> {
.service(start_start)
.service(tutorial)
.service(lottery_tutorial)
.service(lottery_post)
.service(lottery)
.service(friend)
.service(mission)