- FastAPI + WebSocket 백엔드 (ws_relay, webhook, messages 라우터) - GUARDiA-Bot: @bot 명령 응답 + 선제적 맥락 분석 (DB 지연, 디스크, 장애 감지) - 승인 워크플로우: 재기동/배포 SR → 승인/반려 인터랙티브 버튼 - 다크 테마 Slack형 프론트엔드 (5개 채널, 실시간 메시지) - 채널: 일반/배포/운영/PM관리/알림 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
376 B
Python
16 lines
376 B
Python
from fastapi import APIRouter
|
|
from core.bot import ROOMS, message_store
|
|
|
|
router = APIRouter(prefix="/api")
|
|
|
|
|
|
@router.get("/rooms")
|
|
async def list_rooms():
|
|
return {"rooms": ROOMS}
|
|
|
|
|
|
@router.get("/messages/{room_id}")
|
|
async def get_messages(room_id: str, limit: int = 50):
|
|
msgs = message_store.get(room_id, [])
|
|
return {"room_id": room_id, "messages": msgs[-limit:]}
|