backend: prepare to adding posts to database
This commit is contained in:
parent
59d092c9d0
commit
c95aed01b5
4 changed files with 65 additions and 39 deletions
|
@ -67,4 +67,4 @@ async def upload_screenshot(scrshot: Annotated[bytes, File()], filename: str):
|
|||
|
||||
@app.post("/api/file")
|
||||
async def upload_file(file: Annotated[bytes, File()], filename: str):
|
||||
return {"file_size": save_file(file, "files", filename)}
|
||||
return {"file_size": save_file(file, "files", filename)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue