clove1002 Claude Sonnet 4.6 commited on
Commit
db21bd2
·
1 Parent(s): 3668c2d

Remove index.html, return JSON from root endpoint

Browse files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. index.html +0 -12
  2. main.py +1 -2
index.html DELETED
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>ZHSAPI</title>
7
- </head>
8
- <body>
9
- <h1>ZHSAPI</h1>
10
- <p>Welcome to ZHSAPI.</p>
11
- </body>
12
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
main.py CHANGED
@@ -1,11 +1,10 @@
1
  from fastapi import FastAPI
2
- from fastapi.responses import FileResponse
3
 
4
  app = FastAPI(title="ZHSAPI")
5
 
6
  @app.get("/")
7
  def root():
8
- return FileResponse("index.html")
9
 
10
  @app.get("/health")
11
  def health():
 
1
  from fastapi import FastAPI
 
2
 
3
  app = FastAPI(title="ZHSAPI")
4
 
5
  @app.get("/")
6
  def root():
7
+ return {"message": "ZHSAPI"}
8
 
9
  @app.get("/health")
10
  def health():