impls claims on looted items

This commit is contained in:
artus committed 2019-07-02 15:33:36 +02:00
1 parent 36c8f24fdc
commit 5a792edb20
5 files changed
+59 -50

No files matched your search

+4
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)>| {