Julia-Amadio commited on
Commit
032e402
·
1 Parent(s): 3ac2966

Add health check.

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -55,6 +55,10 @@ except FileNotFoundError:
55
 
56
 
57
  #3. ENDPOINTS DA API
 
 
 
 
58
  @app.post("/classify/")
59
  async def classify_image(file: UploadFile = File(...), token: str = Depends(verify_token)):
60
  """
 
55
 
56
 
57
  #3. ENDPOINTS DA API
58
+ @app.get("/") #HEALTH CHECK
59
+ async def root():
60
+ return {"message": "API Dr. Plant está ONLINE! Use o endpoint /classify/ para enviar imagens."}
61
+
62
  @app.post("/classify/")
63
  async def classify_image(file: UploadFile = File(...), token: str = Depends(verify_token)):
64
  """