Get the current request's api path.
()
| 114 | |
| 115 | |
| 116 | def get_current_api_path() -> str | None: |
| 117 | """ |
| 118 | Get the current request's api path. |
| 119 | """ |
| 120 | context = _request_context.get() |
| 121 | if context: |
| 122 | return context.get("api_path") |
| 123 | return None |
| 124 | |
| 125 | |
| 126 | def get_current_env() -> str | None: |
no test coverage detected