tigrbl_kms 0.3.2.dev6__tar.gz → 0.3.2.dev7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tigrbl_kms
3
- Version: 0.3.2.dev6
3
+ Version: 0.3.2.dev7
4
4
  Summary: A Tigrbl key management service for Swarmauri.
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tigrbl_kms"
3
- version = "0.3.2.dev6"
3
+ version = "0.3.2.dev7"
4
4
  description = "A Tigrbl key management service for Swarmauri."
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
@@ -32,15 +32,17 @@ app = TigrblApp(
32
32
  version="0.1.0",
33
33
  openapi_url="/openapi.json",
34
34
  docs_url="/docs",
35
+ jsonrpc_prefix="/kms/rpc",
35
36
  engine=ENGINE,
36
- api_hooks={"*": {"PRE_TX_BEGIN": [_stash_ctx]}},
37
+ router_hooks={"*": {"PRE_TX_BEGIN": [_stash_ctx]}},
37
38
  )
38
39
 
39
40
 
40
41
  # Custom ops return raw dicts so no finalize hook needed
41
- app.include_models([Key, KeyVersion], base_prefix="/kms")
42
- app.mount_jsonrpc(prefix="/kms/rpc")
42
+ app.include_tables([Key, KeyVersion], base_prefix="/kms")
43
43
  app.attach_diagnostics(prefix="/system")
44
+ # Backward-compatible alias used by tests and older integrations.
45
+ app.routes = app.router.routes
44
46
 
45
47
 
46
48
  # Initialize database tables on startup
File without changes