Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,11 @@ app = FastAPI()
|
|
| 16 |
async def read_root():
|
| 17 |
return {"message": "Welcome to the FastAPI application!"}
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
@app.get("/health")
|
| 20 |
async def health_check():
|
| 21 |
return {"status": "healthy"}
|
|
|
|
| 16 |
async def read_root():
|
| 17 |
return {"message": "Welcome to the FastAPI application!"}
|
| 18 |
|
| 19 |
+
@app.get("/test")
|
| 20 |
+
async def test_endpoint():
|
| 21 |
+
return {"status": "This is a test endpoint and it's working!"}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
@app.get("/health")
|
| 25 |
async def health_check():
|
| 26 |
return {"status": "healthy"}
|