make emotions named instead, add drop prop

This commit is contained in:
Evan Carroll 2026-01-13 16:49:07 -06:00
parent 989e20757b
commit ea3b444d71
19 changed files with 1429 additions and 150 deletions

View file

@ -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),
)
}