Initialize the startup routes stored in STARTUP_ROUTES.
(self)
| 1947 | Dash.STARTUP_ROUTES.append((name, view_func, methods)) |
| 1948 | |
| 1949 | def setup_startup_routes(self) -> None: |
| 1950 | """ |
| 1951 | Initialize the startup routes stored in STARTUP_ROUTES. |
| 1952 | """ |
| 1953 | for _name, _view_func, _methods in self.STARTUP_ROUTES: |
| 1954 | self._add_url( |
| 1955 | f"_dash_startup_route/{_name}", |
| 1956 | with_app_context_factory(_view_func, self), |
| 1957 | _methods, |
| 1958 | ) |
| 1959 | self.STARTUP_ROUTES = [] |
| 1960 | |
| 1961 | def _setup_dev_tools(self, **kwargs): |
| 1962 | debug = kwargs.get("debug", False) |
no test coverage detected