This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# app/views/chat_views.py
|
||||
"""
|
||||
HealthSync AI 챗봇 상담 뷰 (라우터 등록)
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
from app.controllers.chat_controller import chat_controller
|
||||
|
||||
# 챗봇 상담 라우터 생성
|
||||
chat_router = APIRouter(
|
||||
prefix="/chat",
|
||||
tags=["💬 Chat Consultation"],
|
||||
responses={
|
||||
400: {"description": "잘못된 요청입니다."},
|
||||
404: {"description": "사용자를 찾을 수 없습니다."},
|
||||
500: {"description": "서버 내부 오류가 발생했습니다."}
|
||||
}
|
||||
)
|
||||
|
||||
# 챗봇 컨트롤러의 라우터 포함
|
||||
chat_router.include_router(chat_controller.router)
|
||||
@@ -0,0 +1,20 @@
|
||||
# app/views/health_views.py
|
||||
"""
|
||||
HealthSync AI 건강 분석 뷰 (라우터 등록)
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
from app.controllers.health_controller import health_controller
|
||||
|
||||
# 건강 분석 라우터 생성
|
||||
health_router = APIRouter(
|
||||
prefix="/health",
|
||||
tags=["🔬 Health Analysis"],
|
||||
responses={
|
||||
400: {"description": "잘못된 요청입니다."},
|
||||
404: {"description": "사용자를 찾을 수 없습니다."},
|
||||
500: {"description": "서버 내부 오류가 발생했습니다."}
|
||||
}
|
||||
)
|
||||
|
||||
# 건강 컨트롤러의 라우터 포함
|
||||
health_router.include_router(health_controller.router)
|
||||
@@ -0,0 +1,20 @@
|
||||
# app/views/mission_views.py
|
||||
"""
|
||||
HealthSync AI 미션 관련 뷰 (라우터 등록)
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
from app.controllers.mission_controller import mission_controller
|
||||
|
||||
# 미션 관련 라우터 생성
|
||||
mission_router = APIRouter(
|
||||
prefix="/missions",
|
||||
tags=["🎯 Mission Management"],
|
||||
responses={
|
||||
400: {"description": "잘못된 요청입니다."},
|
||||
404: {"description": "사용자 또는 미션을 찾을 수 없습니다."},
|
||||
500: {"description": "서버 내부 오류가 발생했습니다."}
|
||||
}
|
||||
)
|
||||
|
||||
# 미션 컨트롤러의 라우터 포함 (추천 + 축하 기능 모두 포함)
|
||||
mission_router.include_router(mission_controller.router)
|
||||
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
HealthSync AI 상태체크 뷰 (라우터 등록)
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
from app.controllers.status_controller import status_controller
|
||||
|
||||
# 헬스체크 라우터 생성
|
||||
status_router = APIRouter(
|
||||
prefix="/status",
|
||||
tags=["🏥 Status Check"],
|
||||
responses={
|
||||
404: {"description": "엔드포인트를 찾을 수 없습니다."},
|
||||
500: {"description": "서버 내부 오류가 발생했습니다."}
|
||||
}
|
||||
)
|
||||
|
||||
# 상태체크 컨트롤러의 라우터 포함
|
||||
status_router.include_router(status_controller.router)
|
||||
Reference in New Issue
Block a user