feat(dashboard): drop /api/agents and /api/activity endpoints
This commit is contained in:
@@ -34,7 +34,6 @@ from constants import ( # noqa: E402 re-exported for tests
|
||||
VENV_PYTHON,
|
||||
WORKSPACE_DIR,
|
||||
)
|
||||
from handlers.agents import AgentsHandlers # noqa: E402
|
||||
from handlers.cron import CronHandlers # noqa: E402
|
||||
from handlers.eco import EcoHandlers # noqa: E402
|
||||
from handlers.files import FilesHandlers # noqa: E402
|
||||
@@ -54,7 +53,6 @@ class TaskBoardHandler(
|
||||
YoutubeHandlers,
|
||||
WorkspaceHandlers,
|
||||
CronHandlers,
|
||||
AgentsHandlers,
|
||||
SimpleHTTPRequestHandler,
|
||||
):
|
||||
"""HTTP request handler — dispatches to handler-mixin methods."""
|
||||
@@ -90,12 +88,8 @@ class TaskBoardHandler(
|
||||
self.send_json({'status': 'ok', 'time': _dt.now().isoformat()})
|
||||
elif self.path == '/api/git' or self.path.startswith('/api/git?'):
|
||||
self.handle_git_status()
|
||||
elif self.path == '/api/agents' or self.path.startswith('/api/agents?'):
|
||||
self.handle_agents_status()
|
||||
elif self.path == '/api/cron' or self.path.startswith('/api/cron?'):
|
||||
self.handle_cron_status()
|
||||
elif self.path == '/api/activity' or self.path.startswith('/api/activity?'):
|
||||
self.handle_activity()
|
||||
elif self.path == '/api/habits':
|
||||
self.handle_habits_get()
|
||||
elif self.path.startswith('/api/files'):
|
||||
|
||||
Reference in New Issue
Block a user