5 vol 3
This commit is contained in:
parent
6799611582
commit
95483a8242
@ -24,6 +24,7 @@ def daj_dane(plik):
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
origins = ["*"]
|
||||
|
||||
app.add_middleware(
|
||||
@ -34,6 +35,7 @@ app.add_middleware(
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
|
||||
@app.post('/invoice')
|
||||
async def root(file: UploadFile):
|
||||
return daj_dane(file.file.read())
|
||||
|
Loading…
Reference in New Issue
Block a user