This commit is contained in:
2025-11-18 19:36:08 +00:00
parent b94aa17eee
commit 11142b9cb0
6 changed files with 55 additions and 0 deletions

View File

@@ -224,6 +224,13 @@ export class OneboxHttpServer {
} else if (path.match(/^\/api\/ssl\/[^/]+\/renew$/) && method === 'POST') {
const domain = path.split('/')[3];
return await this.handleRenewCertificateRequest(domain);
} else if (path === '/api/domains' && method === 'GET') {
return await this.handleGetDomainsRequest();
} else if (path === '/api/domains/sync' && method === 'POST') {
return await this.handleSyncDomainsRequest();
} else if (path.match(/^\/api\/domains\/[^/]+$/) && method === 'GET') {
const domainName = path.split('/').pop()!;
return await this.handleGetDomainDetailRequest(domainName);
} else {
return this.jsonResponse({ success: false, error: 'Not found' }, 404);
}