adds a working inventory

This commit is contained in:
2019-08-05 15:41:41 +02:00
parent 894f5f8200
commit 10d157a9af
6 changed files with 2273 additions and 4 deletions

View File

@@ -83,6 +83,9 @@ pub(crate) fn serve() -> std::io::Result<()> {
)
.service(
web::scope("/api")
.route("/items", web::get().to_async(move |pool: AppPool| {
db_call(pool, move |api| api.fetch_inventory())
}))
.service(
web::scope("/players")
.route(