add more econ stuff

This commit is contained in:
Devin Zuczek
2026-06-12 17:49:24 -04:00
parent e89bf3451f
commit 767dd47bab
4 changed files with 171 additions and 3 deletions
+10 -3
View File
@@ -6,9 +6,16 @@ endpoints the game client calls on the `econ` service (distinct from the main
## Endpoints
- `GET /api/avatar/v1/defaultunlocked` — default-unlocked avatar items. Returns
an empty array until there's a DB binding.
- `GET /api/avatar/v1/defaultunlocked` — default-unlocked avatar items, served
from the bundled `static/default-avatar-items.json` catalog.
- `GET /api/avatar/v4/items``[Authorize]`. The player's avatar items: owned
items concatenated with the default catalog. No DB binding yet, so owned is
empty and this returns just the catalog.
- `GET /api/avatar/v2``[Authorize]`. The player's avatar. No DB binding yet,
so it returns the default `{ OutfitSelections, FaceFeatures, SkinColor,
HairColor }` the C# seeds for a new player.
## TODO before production
- Wire a DB binding for the default-unlocked item set.
- Wire a DB binding and prepend each player's owned `AvatarItems` to
`/api/avatar/v4/items`.