from fastapi import FastAPI from base_types import Notification app = FastAPI() @app.post("/notification") async def notification(ntfy: Notification): print(ntfy)