import fastapi from dataclasses import dataclass @dataclass class Destination: name: str location: tuple attractiveness: int d = Destination() def get_route() -> list[Destination]: return {"route": "Hello World"} endpoint = ("/get_route", get_route) end if __name__ == "__main__": fastapi.run()