update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user