feat: Added server status endpoint
This commit is contained in:
parent
746ccc29a0
commit
2a6fc2874f
9
backend/server_status.py
Normal file
9
backend/server_status.py
Normal 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})
|
||||||
Loading…
Reference in New Issue
Block a user