2023-programowanie-w-pythonie/zajecia4/fastapi_w_pytest/main.py
2023-11-25 20:37:12 +01:00

11 lines
161 B
Python

from fastapi import FastAPI
from fastapi.testclient import TestClient
app = FastAPI()
@app.get("/")
async def read_main():
return {"msg": "Hello World"}