File size: 330 Bytes
a844653
56205e9
1cc747b
56205e9
6066e39
a844653
 
 
152d4a2
a844653
 
 
 
6066e39
12f5431
 
6fb3190
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import logging
from fastapi import FastAPI

app = FastAPI()

logging.basicConfig(
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
    level=logging.INFO
)
logger = logging.getLogger(__name__)

logger.info("Запускаемся... 🥳🥳🥳")


@app.get("/")
def greet_json():
    return {"Hello": "World!"}