hamza82 commited on
Commit
ce2f6db
·
verified ·
1 Parent(s): 338adb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ settings = {
140
  @app.get("/")
141
  def read_root():
142
  # Serve your static HTML file at the root.
143
- return FileResponse('static/index.html')
144
 
145
  @app.get("/api")
146
  def read_api():
 
140
  @app.get("/")
141
  def read_root():
142
  # Serve your static HTML file at the root.
143
+ return {"message": "Hello from the FastAPI API!"}
144
 
145
  @app.get("/api")
146
  def read_api():