"""The templates API: the blueprints a document can be started from. Reading is for everyone (the picker needs it), changing is admin-only, and the two live on separate routers so the gate is structural rather than repeated per endpoint. `catalog` is what ships with the product, `edit` what the customer made of it. **Route order matters.** The catalog's static paths are registered before `/{template_id}`, or "catalog" would be parsed as a row id. """ from fastapi import APIRouter from app.api.templates import browse, catalog, edit router = APIRouter() router.include_router(catalog.router) router.include_router(edit.router) router.include_router(browse.router)