adds a working inventory
This commit is contained in:
@@ -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