make emotions named instead, add drop prop
This commit is contained in:
parent
989e20757b
commit
ea3b444d71
19 changed files with 1429 additions and 150 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use axum::{routing::get, Router};
|
||||
|
||||
use super::{auth, avatars, realms, scenes, websocket};
|
||||
use super::{auth, avatars, inventory, realms, scenes, websocket};
|
||||
use crate::app::AppState;
|
||||
|
||||
/// Build the API router for user UI.
|
||||
|
|
@ -51,4 +51,10 @@ pub fn api_router() -> Router<AppState> {
|
|||
)
|
||||
// Avatar routes (require authentication)
|
||||
.route("/realms/{slug}/avatar", get(avatars::get_avatar))
|
||||
// Inventory routes (require authentication)
|
||||
.route("/inventory", get(inventory::get_inventory))
|
||||
.route(
|
||||
"/inventory/{item_id}",
|
||||
axum::routing::delete(inventory::drop_item),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue