1 2 3 4 5 6 7 8 9 10 11 12 13
import structlog from fastapi import FastAPI from fastapi.templating import Jinja2Templates app = FastAPI( servers = [ {"url": "https://kennel.hatecomputers.club", "description": "prod"} ] ) logger = structlog.get_logger() templates = Jinja2Templates(directory="templates")