Some checks failed
Tests / Go Tests (push) Has been cancelled
Tests / Python Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Go Lint (push) Has been cancelled
Tests / Python Lint (push) Has been cancelled
Tests / Security Scan (push) Has been cancelled
Tests / All Checks Passed (push) Has been cancelled
Security Scanning / Secret Scanning (push) Has been cancelled
Security Scanning / Dependency Vulnerability Scan (push) Has been cancelled
Security Scanning / Go Security Scan (push) Has been cancelled
Security Scanning / Python Security Scan (push) Has been cancelled
Security Scanning / Node.js Security Scan (push) Has been cancelled
Security Scanning / Docker Image Security (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
CI/CD Pipeline / Go Tests (push) Has been cancelled
CI/CD Pipeline / Python Tests (push) Has been cancelled
CI/CD Pipeline / Website Tests (push) Has been cancelled
CI/CD Pipeline / Linting (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Docker Build & Push (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / CI Summary (push) Has been cancelled
ci/woodpecker/manual/build-ci-image Pipeline was successful
ci/woodpecker/manual/main Pipeline failed
All services: admin-v2, studio-v2, website, ai-compliance-sdk, consent-service, klausur-service, voice-service, and infrastructure. Large PDFs and compiled binaries excluded via .gitignore.
71 lines
2.0 KiB
Python
71 lines
2.0 KiB
Python
"""
|
|
Classroom API - Modularer Router.
|
|
|
|
Dieser Router sammelt alle Classroom-bezogenen Endpoints aus den Submodulen.
|
|
Für Rückwärtskompatibilität kann der alte classroom_api.py Pfad weiterhin
|
|
verwendet werden.
|
|
|
|
Struktur:
|
|
- sessions.py: Session CRUD, Timer, Phasen, History
|
|
- templates.py: Stunden-Vorlagen
|
|
- homework.py: Hausaufgaben-Tracking
|
|
- materials.py: Unterrichtsmaterialien
|
|
- analytics.py: Analytics & Reflexionen
|
|
- feedback.py: Lehrer-Feedback
|
|
- settings.py: Lehrer-Einstellungen
|
|
- utility.py: Health, Phases, Export
|
|
- context.py: Teacher Context (v1 API)
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from .sessions import router as sessions_router
|
|
from .templates import router as templates_router
|
|
from .homework import router as homework_router
|
|
from .materials import router as materials_router
|
|
from .analytics import router as analytics_router
|
|
from .feedback import router as feedback_router
|
|
from .settings import router as settings_router
|
|
from .utility import router as utility_router
|
|
from .context import router as context_router
|
|
|
|
# Haupt-Router mit Prefix
|
|
router = APIRouter(prefix="/api/classroom", tags=["Classroom"])
|
|
|
|
# Sub-Router einbinden
|
|
router.include_router(sessions_router)
|
|
router.include_router(templates_router)
|
|
router.include_router(homework_router)
|
|
router.include_router(materials_router)
|
|
router.include_router(analytics_router)
|
|
router.include_router(feedback_router)
|
|
router.include_router(settings_router)
|
|
router.include_router(utility_router)
|
|
router.include_router(context_router)
|
|
|
|
# Re-exports für einfachen Import
|
|
from .models import (
|
|
CreateSessionRequest,
|
|
SessionResponse,
|
|
TimerStatus,
|
|
SuggestionsResponse,
|
|
)
|
|
from .shared import (
|
|
ws_manager,
|
|
get_session_or_404,
|
|
start_timer_broadcast,
|
|
stop_timer_broadcast,
|
|
)
|
|
|
|
__all__ = [
|
|
"router",
|
|
"ws_manager",
|
|
"get_session_or_404",
|
|
"start_timer_broadcast",
|
|
"stop_timer_broadcast",
|
|
"CreateSessionRequest",
|
|
"SessionResponse",
|
|
"TimerStatus",
|
|
"SuggestionsResponse",
|
|
]
|