yumoqing b150399cc4 fix: Complete init.py and add api.py with proper implementation
- Fix truncated init.py file with complete implementation
- Add api.py with route registration and placeholder functions
- Remove awaitify import that was causing syntax errors
- Ensure proper ServerEnv integration
2026-04-21 14:32:06 +08:00

13 lines
386 B
Python

from ahserver.serverenv import ServerEnv
def load_hermes_web_cli():
"""Load hermes web cli module"""
env = ServerEnv()
# Register static file serving for hermes-web-cli
env.register_static_path('/hermes-web-cli', 'wwwroot/hermes-web-cli')
# Register API endpoints
from hermes_web_cli.api import register_routes
register_routes(env)
return True