Get the server root path from the environment variables. - If SERVER_ROOT_PATH is set, return it. - Otherwise, default to "/".
()
| 5898 | |
| 5899 | |
| 5900 | def get_server_root_path() -> str: |
| 5901 | """ |
| 5902 | Get the server root path from the environment variables. |
| 5903 | |
| 5904 | - If SERVER_ROOT_PATH is set, return it. |
| 5905 | - Otherwise, default to "/". |
| 5906 | """ |
| 5907 | return os.getenv("SERVER_ROOT_PATH", "") |
| 5908 | |
| 5909 | |
| 5910 | def normalize_route_for_root_path(route: str) -> Optional[str]: |
no outgoing calls