Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for add_route (0.13 sec)

  1. fastapi/applications.py

                    )
    
                self.add_route(self.docs_url, swagger_ui_html, include_in_schema=False)
    
                if self.swagger_ui_oauth2_redirect_url:
    
                    async def swagger_ui_redirect(req: Request) -> HTMLResponse:
                        return get_swagger_ui_oauth2_redirect_html()
    
                    self.add_route(
                        self.swagger_ui_oauth2_redirect_url,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

            name: Optional[str] = None,
            include_in_schema: bool = True,
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_route(
                    path,
                    func,
                    methods=methods,
                    name=name,
                    include_in_schema=include_in_schema,
                )
                return func
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
Back to top