- 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
13 lines
386 B
Python
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 |