Partially implement /api/user/detail

This commit is contained in:
Ethan O'Brien
2024-04-08 15:57:57 -05:00
parent 299e60e4d5
commit e13c9133b4
4 changed files with 79 additions and 2 deletions

View File

@@ -81,6 +81,9 @@ async fn story_read(req: HttpRequest, body: String) -> HttpResponse { router::st
#[post("/api/user/initialize")]
async fn user_initialize(req: HttpRequest, body: String) -> HttpResponse { router::user::initialize(req, body) }
#[post("/api/user/detail")]
async fn user_detail(req: HttpRequest, body: String) -> HttpResponse { router::user::detail(req, body) }
#[post("/api/deck")]
async fn user_deck(req: HttpRequest, body: String) -> HttpResponse { router::user::deck(req, body) }
@@ -215,6 +218,7 @@ async fn main() -> std::io::Result<()> {
.service(user)
.service(user_post)
.service(user_deck)
.service(user_detail)
.service(dummy_login)
.service(getmigrationcode)
.service(registerpassword)