from fastapi import FastAPI import sys import os import dataset db = dataset.connect('sqlite:///tmp/hhh.db') app = FastAPI() @app.get("/domain/{domain_name}") async def test_domain(domain_name): return {"item_id": domain_name} @app.get("/") async def root(): return {"message": "test"}