adds a working inventory
This commit is contained in:
1 parent
894f5f8200
commit
10d157a9af
6 files changed
+2273
-4
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user