refactor(routes): move research domain into routes/research/ subpackage

Move the research route domain into the canonical routes/research/ subpackage while preserving the legacy routes.research_routes import path through a sys.modules compatibility shim.

The moved canonical module is behavior-preserving, app wiring now imports the canonical route setup function, source-introspection tests point at the new canonical path, and shim regression coverage pins legacy/canonical same-object behavior plus string-targeted monkeypatch reach-through.

Refs #4082.
Refs #4071.
This commit is contained in:
Tal.Yuan
2026-06-28 21:34:11 +08:00
committed by GitHub
parent e018c7cf6c
commit bb2148db73
7 changed files with 743 additions and 677 deletions
+5
View File
@@ -0,0 +1,5 @@
"""Research route domain package (slice 2b, #4082/#4071).
Contains research_routes.py, migrated from the flat routes/ directory.
Backward-compat shim at routes/research_routes.py re-exports from here.
"""