Jelajahi Sumber

add a router for service monitoring

highing666 3 tahun lalu
induk
melakukan
b3a8dd9a8c
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      app/api/routers/algorithms.py

+ 5 - 0
app/api/routers/algorithms.py

@@ -8,6 +8,11 @@ from app.models.domain.algorithms import AttendeesRecommendationRequest, Attende
 router = APIRouter()
 
 
+@router.get('/status')
+async def get_living_condition():
+    return {'message': 'alive'}
+
+
 @router.post('/graph-coloring', response_model=GraphColoringResponse)
 async def get_graph_coloring_result(graph: GraphColoringRequest):
     is_solvable, colored = await get_graph_coloring(graph.graph)