Create static directory if it doesn't exist.
()
| 765 | |
| 766 | |
| 767 | def create_static_directory(): |
| 768 | """Create static directory if it doesn't exist.""" |
| 769 | static_dir = Path("static") |
| 770 | static_dir.mkdir(exist_ok=True) |
| 771 | return static_dir |
| 772 | |
| 773 | |
| 774 | def run_server(host: str = "127.0.0.1", port: int = 8000, reload: bool = False): |