mud_server.api.routes.policies

Canonical policy-object API routes for the 3-layer architecture pilot.

These handlers intentionally stay thin: - authenticate/authorize request session - translate HTTP payloads to service-layer calls - map structured service errors to stable API responses

Functions

router(_engine)

Build API router for canonical policy-object endpoints.

Module Contents

mud_server.api.routes.policies.router(_engine)[source]

Build API router for canonical policy-object endpoints.

Parameters:

_engine (mud_server.core.engine.GameEngine) – Reserved for future runtime-aware policy endpoints. The current pilot endpoints do not require direct engine access.