from fastapi import APIRouter, Depends from app.deps import get_current_user, require_permission # NOTE: main.py mounts plugin routers WITHOUT a prefix — the manifest's # route path is documentation only. The full path must live here. router = APIRouter() @router.get( "/api/v1/minimal-example", dependencies=[Depends(require_permission("minimal_example:read"))], ) async def list_items(current_user: dict = Depends(get_current_user)): return {"items": []}