refactor PlayerView, plans to replace ApiStorage.js by lootalot.js api module

This commit is contained in:
2019-10-18 14:35:06 +02:00
parent 08397e7b25
commit 60a6e69f67
5 changed files with 93 additions and 55 deletions

View File

@@ -41,7 +41,9 @@ fn configure_app(config: &mut web::ServiceConfig) {
) // List of players
.service(
web::scope("/{player_id}")
//.route(web::get().to_async(...)) // Details of player
.route("/", web::get().to_async(|pool, player: PlayerId| {
db_call(pool, Q::FetchPlayer(*player))
}))
.service(
web::resource("/claims")
//.route(web::get().to_async(endpoints::player_claims))