feat: Added server status endpoint

This commit is contained in:
sweep-ai[bot] 2023-11-30 16:32:21 +00:00 committed by GitHub
parent 746ccc29a0
commit 2a6fc2874f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
backend/server_status.py Normal file
View File

@ -0,0 +1,9 @@
from fastapi import APIRouter
from fastapi.responses import JSONResponse
router = APIRouter()
@router.get("/status")
async def get_status():
message = "Your backend server is running correctly"
return JSONResponse(content={"message": message})