navpan2 commited on
Commit
446c76e
·
verified ·
1 Parent(s): b6ccbb2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -47,7 +47,9 @@ class Disease(BaseModel):
47
  @app.get("/")
48
  def welcome():
49
  return {"message": "Welcome to the Disease Information API! Visit /docs for API documentation."}
50
-
 
 
51
  # API endpoint to fetch disease details by plant name
52
  @app.get("/disease/{plant_name}", response_model=Disease)
53
  async def get_disease(plant_name: str):
 
47
  @app.get("/")
48
  def welcome():
49
  return {"message": "Welcome to the Disease Information API! Visit /docs for API documentation."}
50
+ @app.get("/check/{plant_name}")
51
+ async def get_disease(plant_name: str):
52
+ return plant_name
53
  # API endpoint to fetch disease details by plant name
54
  @app.get("/disease/{plant_name}", response_model=Disease)
55
  async def get_disease(plant_name: str):