Skip to content

Commit cb175d4

Browse files
committed
Code review: add note about feature_id routing
1 parent 237d64d commit cb175d4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • examples/chem-sync-local-flask/local_app/benchling_app

examples/chem-sync-local-flask/local_app/benchling_app/handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def handle_webhook(webhook_dict: dict[str, Any]) -> None:
2323
webhook = WebhookEnvelopeV0.from_dict(webhook_dict)
2424
app = init_app_from_webhook(webhook)
2525
# Could also choose to route on webhook.message.type
26+
# Note: if your manifest specifies more than one item in `features`,
27+
# then `webhook.message.feature_id` may also need to be part of your routing logic
2628
if isinstance(webhook.message, CanvasInitializeWebhookV0):
2729
render_search_canvas(app, webhook.message)
2830
elif isinstance(webhook.message, CanvasInteractionWebhookV0):

0 commit comments

Comments
 (0)