""" School Module Modular structure for the School frontend (Schulverwaltung). Matrix-based communication for schools. Modular Refactoring (2026-02-03): - Split into sub-modules for maintainability - Original file: school.py (3,732 lines) - Now split into: styles.py, templates.py, pages/ """ from fastapi import APIRouter from fastapi.responses import HTMLResponse from .pages import ( school_dashboard, attendance_page, grades_page, timetable_page, parent_onboarding, ) router = APIRouter() # ============================================ # API Routes # ============================================ @router.get("/school", response_class=HTMLResponse) def get_school_dashboard(): """Main school dashboard""" return school_dashboard() @router.get("/school/attendance", response_class=HTMLResponse) def get_attendance_page(): """Attendance tracking page""" return attendance_page() @router.get("/school/grades", response_class=HTMLResponse) def get_grades_page(): """Grades overview page""" return grades_page() @router.get("/school/timetable", response_class=HTMLResponse) def get_timetable_page(): """Timetable page""" return timetable_page() @router.get("/onboard-parent", response_class=HTMLResponse) def get_parent_onboarding(): """Parent onboarding page (QR code landing)""" return parent_onboarding() __all__ = [ "router", ]