impls claims on looted items

This commit is contained in:
2019-07-02 15:33:36 +02:00
parent 36c8f24fdc
commit 5a792edb20
5 changed files with 59 additions and 50 deletions

View File

@@ -62,6 +62,10 @@ pub(crate) fn serve() -> std::io::Result<()> {
db_call(pool, move |api| api.fetch_players())
}),
)
.route(
"/claims",
web::get().to_async(move |pool: AppPool| db_call(pool, move |api| api.fetch_claims())),
)
.route(
"/update-wealth/{player_id}/{amount}",
web::get().to_async(move |pool: AppPool, data: web::Path<(i32, f32)>| {