game/addons/game_base/models/__init__.py
pengyuthon f78f37d677 fix(game_base): rebuild db-aware routing patch to fix game.pengyuthon.cn login 404
- rebuild models/ir_http.py: monkeypatch Request._get_session_and_dbname
  bind DB by URL prefix (/game/->game, /yt_world/->yt_game), guarded by db_filter
- __init__.py import ir_http to load the patch
- root cause: dbfilter=^(pengyuthon|school|test|yun|game)$, nginx proxies
  /game/ with Host:game.pengyuthon.cn; host cannot resolve db -> nodb route
  table -> /game/api/* 404, login fails
- after fix /game/api/codex and /game/api/login return 200
2026-07-25 23:20:56 +08:00

9 lines
175 B
Python

from . import codex
from . import forum
from . import announcement
from . import rule_category
from . import rule
from . import page
from . import story
from . import ir_http