Create routes/image_edit.py
Browse files- routes/image_edit.py +11 -0
routes/image_edit.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import APIRouter, UploadFile, File
|
| 2 |
+
|
| 3 |
+
router = APIRouter(prefix="/image")
|
| 4 |
+
|
| 5 |
+
@router.post("/upload")
|
| 6 |
+
async def upload_image(file: UploadFile = File(...)):
|
| 7 |
+
|
| 8 |
+
return {
|
| 9 |
+
"filename": file.filename,
|
| 10 |
+
"status": "uploaded"
|
| 11 |
+
}
|