test endpoint

This commit is contained in:
mkozlowskiAzimuthe 2023-01-22 23:10:08 +01:00
parent 66086936f7
commit 8f5b72c2fa

View File

@ -29,6 +29,9 @@ os.system("ipconfig")
print("Starting server") print("Starting server")
app = FastAPI() app = FastAPI()
@app.get("/test")
async def test():
return {"message": "Test"}
@app.post("/process") @app.post("/process")
async def process_image(file: UploadFile= File(...)): async def process_image(file: UploadFile= File(...)):