Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 28s
CI / test-go-edu-search (push) Successful in 29s
CI / test-python-klausur (push) Failing after 2m31s
CI / test-python-agent-core (push) Successful in 20s
CI / test-nodejs-website (push) Successful in 23s
grid/ package (16 files): grid/build/ — core, zones, cleanup, text_ops, cell_ops, finalize grid/editor/ — api, helpers, columns, filters, headers, zones vocab/ package (10 files): vocab/worksheet/ — api, models, extraction, generation, ocr, upload, analysis, compare vocab/ — session_store, learn_bridge 26 backward-compat shims. Internal imports relative. RAG untouched. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
"""
|
|
Grid Editor API — barrel re-export.
|
|
|
|
The actual endpoints live in:
|
|
- grid_editor_api_grid.py (build-grid, rerun-ocr, save-grid, get-grid)
|
|
- grid_editor_api_gutter.py (gutter-repair, gutter-repair/apply)
|
|
- grid_editor_api_box.py (build-box-grids)
|
|
- grid_editor_api_unified.py (build-unified-grid, unified-grid)
|
|
|
|
This module re-exports the combined router and key symbols so that
|
|
existing `from grid_editor_api import router` / `from grid_editor_api import _build_grid_core`
|
|
continue to work unchanged.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from .api_grid import router as _grid_router
|
|
from .api_gutter import router as _gutter_router
|
|
from .api_box import router as _box_router
|
|
from .api_unified import router as _unified_router
|
|
|
|
# Re-export _build_grid_core so callers that do
|
|
# `from grid_editor_api import _build_grid_core` keep working.
|
|
from grid.build.core import _build_grid_core # noqa: F401
|
|
|
|
# Merge all sub-routers into one combined router
|
|
router = APIRouter()
|
|
router.include_router(_grid_router)
|
|
router.include_router(_gutter_router)
|
|
router.include_router(_box_router)
|
|
router.include_router(_unified_router)
|