Skip to content

API Reference parrot_formdesigner.ui.routes

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_formdesigner.ui.routes

View source

Route registration for the HTML / Telegram UI surface of parrot-formdesigner.

Hard-imports navigator-auth (matching the api package). HTML page routes honour the protect_pages flag via the _page_wrap helper; Telegram WebApp routes are registered WITHOUT auth (public by design — Telegram clients must be able to hit them).

Public API:

setup_form_ui(app, registry, *, base_path="", protect_pages=True) -> None

Alias FormPageHandler

Re-exported from parrot_formdesigner.ui.handlers.FormPageHandler.

Alias FormRegistry

Re-exported from parrot_formdesigner.services.registry.FormRegistry.

Alias TelegramWebAppHandler

Re-exported from parrot_formdesigner.ui.telegram.TelegramWebAppHandler.

Attribute logger

Alias requires_tenant

Re-exported from parrot_formdesigner.core.tenant.requires_tenant.

Function setup_form_ui

Mount the HTML page + Telegram WebApp surface on app.

Telegram routes are public (no auth). HTML page routes honour protect_pages.

setup_form_ui(app: web.Application, registry: FormRegistry, *, base_path: str = '', protect_pages: bool = True) -> None

Parameter Type Default Description
app web.Application aiohttp application to register routes on.
registry FormRegistry Pre-built FormRegistry shared across requests.
base_path str '' URL prefix for all routes (default "" — root mount).
protect_pages bool True When True (default), HTML page routes go through navigator-auth. When False, they run without auth (useful when authentication is handled client-side).

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally