from fastapi import FastAPI, UploadFile from .geojson2vt import geojson2vt app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World!"} @app.post("/upload/") async def create_upload_file(file: UploadFile): geojson2vt(file) return {"filename": file.filename}