parent
7e39964fed
commit
6b3cc13d4c
@ -1,7 +1,14 @@
|
||||
from fastapi import FastAPI
|
||||
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}
|
||||
|
||||
Loading…
Reference in new issue