Remove user_id from key management routes
Key management routes will now extract the user id from auth token.
@@ -36,7 +36,7 @@ pub fn make_key_management_route(
key_store: Arc<dyn KeyStore<Key>>,
secret_manager: Arc<dyn SecretManager>,
) -> Resource {
- Resource::build("/biome/users/{user_id}/keys")
+ Resource::build("/biome/users/keys")
.add_request_guard(ProtocolVersionRangeGuard::new(
protocol::BIOME_KEYS_PROTOCOL_MIN,
protocol::BIOME_PROTOCOL_VERSION,
@@ -253,7 +253,7 @@ pub fn make_key_management_route_with_public_key(
key_store: Arc<dyn KeyStore<Key>>,
secret_manager: Arc<dyn SecretManager>,
) -> Resource {
- Resource::build("/biome/users/{user_id}/keys/{public_key}")
+ Resource::build("/biome/users/keys/{public_key}")
.add_request_guard(ProtocolVersionRangeGuard::new(
protocol::BIOME_KEYS_PROTOCOL_MIN,
protocol::BIOME_PROTOCOL_VERSION,
