impls undoable events
This commit is contained in:
@@ -112,7 +112,14 @@ fn configure_app(config: &mut web::ServiceConfig) {
|
||||
db_call(pool, Q::SellItems(*player, data.into_inner()))
|
||||
},
|
||||
)),
|
||||
),
|
||||
)
|
||||
.service(
|
||||
web::scope("/events")
|
||||
.route("/last", web::delete().to_async(|pool, player: PlayerId| {
|
||||
db_call(pool, Q::UndoLastAction(*player))
|
||||
}))
|
||||
)
|
||||
|
||||
),
|
||||
)
|
||||
.route("/claims", web::get().to_async(|pool| db_call(pool, Q::FetchClaims)))
|
||||
|
||||
Reference in New Issue
Block a user