feat(lua): add Lua route registration in server startup

Add call to registerLuaRoutesWithLocationEngine between proxy and static
route registration, ensuring correct routing order: proxy -> lua -> static.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-09 11:44:39 +08:00
parent 669f9c975b
commit a5b5a085cc

View File

@ -410,6 +410,9 @@ func (s *Server) startSingleMode() error {
// 注册代理路由
s.registerProxyRoutesWithLocationEngine(serverCfg)
// Lua 路由
s.registerLuaRoutesWithLocationEngine(serverCfg)
// 静态文件服务
s.registerStaticHandlersWithLocationEngine(serverCfg)