浏览代码

adding docstring for api_router param

Rodja Trappe 2 年之前
父节点
当前提交
18eeaa69a5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      nicegui/page.py

+ 1 - 0
nicegui/page.py

@@ -38,6 +38,7 @@ class page:
         :param favicon: optional relative filepath or absolute URL to a favicon (default: `None`, NiceGUI icon will be used)
         :param dark: whether to use Quasar's dark mode (defaults to `dark` argument of `run` command)
         :param response_timeout: maximum time for the decorated function to build the page (default: 3.0)
+        :param api_router: APIRouter instance to use, can be left `None` to use the default
         :param kwargs: additional keyword arguments passed to FastAPI's @app.get method
         """
         self.path = path