aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_entity.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/admin/api_entity.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/admin/api_entity.go')
-rw-r--r--internal/admin/api_entity.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/api_entity.go b/internal/admin/api_entity.go
index b32ab89..204c59e 100644
--- a/internal/admin/api_entity.go
+++ b/internal/admin/api_entity.go
@@ -38,7 +38,8 @@ var (
refresh: func(s *AdminServer) { s.invalidateEntityCaches("drops") }}
mobSpec = entityCRUD{route: "mobs", noun: "mob", searchSubdirs: true,
refresh: func(s *AdminServer) { s.invalidateEntityCaches("mobs") }}
- objectSpec = entityCRUD{route: "objects", noun: "object", searchSubdirs: true}
+ objectSpec = entityCRUD{route: "objects", noun: "object", searchSubdirs: true,
+ refresh: func(s *AdminServer) { s.invalidateEntityCaches("objects") }}
hazardSpec = entityCRUD{route: "hazards", noun: "hazard",
refresh: func(s *AdminServer) { s.world.ClearHazardCache() }}
techSpec = entityCRUD{route: "techs", noun: "tech", searchSubdirs: true, upsert: true, bodyErr: true, okResponse: true}