dongchan21 commited on
Commit
ba9f52e
·
1 Parent(s): c9ace58

add root endpoint

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -22,6 +22,9 @@ app.add_middleware(
22
  )
23
  # ------------------------
24
 
 
 
 
25
 
26
  @app.get("/health")
27
  def health():
 
22
  )
23
  # ------------------------
24
 
25
+ @app.get("/")
26
+ def read_root():
27
+ return {"message": "Welcome to the Capstone API!"}
28
 
29
  @app.get("/health")
30
  def health():