You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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}
|