Skip to content

Commit 497d557

Browse files
committed
Start /capture end point
1 parent 77d2e96 commit 497d557

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

main.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
from fastapi import FastAPI
1+
from typing import Annotated
2+
3+
from fastapi import FastAPI, File
24

35
app = FastAPI()
46

57

68
@app.get('/health_check/')
79
def health_check():
810
return {"message": "Healthy!"}
11+
12+
13+
@app.post('/capture/')
14+
def capture(image: Annotated[bytes, File()]):
15+
print(f'{len(image)=}')
16+
return {'status': 'success'}

0 commit comments

Comments
 (0)