from fastapi import FastAPI class WebExtension: app: FastAPI def __init__(self, core): self.core = core self.app = core.app @self.app.get(f"{self.core.context}/ping") async def pong(): return {"pong": True}