Skip to content

Web Module API

μ›Ή λͺ¨λ“ˆ API

The salmalm.web package implements the HTTP server and WebSocket handler.

salmalm.web νŒ¨ν‚€μ§€λŠ” HTTP μ„œλ²„μ™€ WebSocket ν•Έλ“€λŸ¬λ₯Ό κ΅¬ν˜„ν•©λ‹ˆλ‹€.

salmalm.web.web

HTTP request handler β€” serves the web UI, API endpoints, static files, and dashboard.

HTTP μš”μ²­ ν•Έλ“€λŸ¬ β€” μ›Ή UI, API μ—”λ“œν¬μΈνŠΈ, 정적 파일, λŒ€μ‹œλ³΄λ“œ 제곡.

Key endpoints / μ£Όμš” μ—”λ“œν¬μΈνŠΈ:

Endpoint Method Description / μ„€λͺ…
/ GET Web UI / μ›Ή UI
/api/health GET Health check / μƒνƒœ 점검
/api/chat POST Send message / λ©”μ‹œμ§€ 전솑
/api/sessions GET List sessions / μ„Έμ…˜ λͺ©λ‘
/api/dashboard GET Dashboard data / λŒ€μ‹œλ³΄λ“œ 데이터
/api/google/auth GET Google OAuth start / ꡬ글 OAuth μ‹œμž‘
/api/google/callback GET Google OAuth callback / ꡬ글 OAuth 콜백

salmalm.web.ws

WebSocket handler for real-time streaming responses.

μ‹€μ‹œκ°„ 슀트리밍 응닡을 μœ„ν•œ WebSocket ν•Έλ“€λŸ¬.

salmalm.web.auth

Web authentication β€” session tokens, password verification, rate limiting.

μ›Ή 인증 β€” μ„Έμ…˜ 토큰, λΉ„λ°€λ²ˆν˜Έ 검증, μš”μ²­ λΉˆλ„ μ œν•œ.

salmalm.web.oauth

Google OAuth2 flow β€” authorization code exchange, token refresh.

Google OAuth2 흐름 β€” 인증 μ½”λ“œ κ΅ν™˜, 토큰 κ°±μ‹ .

salmalm.web.templates

HTML template generation for web UI pages (setup, unlock, main chat, dashboard).

μ›Ή UI νŽ˜μ΄μ§€(μ„€μ •, 잠금 ν•΄μ œ, 메인 μ±„νŒ…, λŒ€μ‹œλ³΄λ“œ)용 HTML ν…œν”Œλ¦Ώ 생성.