Add changelog viewer to runtime info
This commit is contained in:
@@ -22,6 +22,7 @@ from urllib.parse import parse_qs, unquote, urlencode, urlparse, urlunparse
|
||||
from app_support import (
|
||||
ANI_CLI,
|
||||
APP_NAME,
|
||||
CHANGELOG_FILE,
|
||||
CLIENT_DISCONNECT_ERRORS,
|
||||
MAX_JSON_BODY_BYTES,
|
||||
MODE_CHOICES,
|
||||
@@ -30,6 +31,7 @@ from app_support import (
|
||||
configured_remote_path_roots,
|
||||
debug_enabled,
|
||||
debug_log,
|
||||
load_project_text_file,
|
||||
normalize_config,
|
||||
path_is_within_roots,
|
||||
remote_access_allowed,
|
||||
@@ -530,6 +532,8 @@ class Handler(BaseHTTPRequestHandler):
|
||||
self.json(sanitize_public_config(Handler._context(self).get_config_snapshot()))
|
||||
elif parsed.path == "/api/version":
|
||||
self.json({"name": APP_NAME, "version": VERSION, "ani_cli_version": installed_ani_cli_version()})
|
||||
elif parsed.path == "/api/changelog":
|
||||
self.json({"content": load_project_text_file(CHANGELOG_FILE, default="Changelog unavailable.")})
|
||||
elif parsed.path == "/api/dependencies":
|
||||
self.json(dependency_status())
|
||||
elif parsed.path == "/api/fs/browse":
|
||||
|
||||
Reference in New Issue
Block a user