(self, dash_app: Dash)
| 357 | return Response(data, content_type=mimetype, headers=headers) |
| 358 | |
| 359 | def setup_component_suites(self, dash_app: Dash): |
| 360 | async def serve(package_name, fingerprinted_path): |
| 361 | return self.serve_component_suites( |
| 362 | dash_app, package_name, fingerprinted_path |
| 363 | ) |
| 364 | |
| 365 | # pylint: disable=protected-access |
| 366 | dash_app._add_url( |
| 367 | "_dash-component-suites/<string:package_name>/<path:fingerprinted_path>", |
| 368 | serve, |
| 369 | ) |
| 370 | |
| 371 | def _create_redirect_function(self, redirect_to): |
| 372 | def _redirect(): |