from fastapi import FastApi from pydantic import BaseModel app = FastApi() class Cover(BaseModel): name: str logo: str vid: str @app.get("/search/{console}") def search(sha1: str | None, name: str | None) -> list[Cover]: pass def start() -> None: print("oui")