feat: list VedAstro official raw archives

This commit is contained in:
732642856
2026-07-08 20:35:42 +08:00
parent 99d00c4124
commit 09dcfb9bcc
5 changed files with 78 additions and 0 deletions
+7
View File
@@ -877,6 +877,8 @@ class JyotishAPIHandler(BaseHTTPRequestHandler):
self._json(self._vedastro_status())
elif path == '/api/vedastro_gateway/status':
self._json(self._compute_vedastro_gateway_status())
elif path == '/api/vedastro_gateway/archives':
self._json(self._compute_vedastro_gateway_archives())
elif path.startswith('/api/vedastro_gateway/jobs/'):
job_id = path.rsplit('/', 1)[-1]
result = self._compute_vedastro_gateway_job(job_id)
@@ -1766,6 +1768,11 @@ class JyotishAPIHandler(BaseHTTPRequestHandler):
return gateway_status()
def _compute_vedastro_gateway_archives(self):
from scripts.vedastro_gateway import list_official_raw_response_archives
return list_official_raw_response_archives()
def _compute_vedastro_gateway_job(self, job_id):
from scripts.vedastro_gateway import get_gateway_job