소스 검색

add a router for service monitoring

highing666 4 년 전
부모
커밋
b3a8dd9a8c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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)