added FastApi Doc

This commit is contained in:
RadinPirouz
2026-01-19 18:19:12 +03:30
parent e23412bb02
commit da5d7d1961
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
```python
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def home_dir():
return {"message": "Home Pag"}
```
```bash
fastapi dev main.py
```
use uvicorn as defualt runner
or
we can run with uvicorn command
```bash
uvicorn main:app --reload --host 0.0.0.0 --port 1234
```