mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
refactor: refactor app and api
This commit is contained in:
parent
5ab50b8a93
commit
287ef7527d
157 changed files with 8116 additions and 3587 deletions
|
@ -1,5 +1,27 @@
|
|||
import type { ModelBase } from '@/api/curd'
|
||||
import Curd from '@/api/curd'
|
||||
import type { DnsCredential } from '@/api/dns_credential'
|
||||
|
||||
const cert = new Curd('/cert')
|
||||
export interface Cert extends ModelBase {
|
||||
name: string
|
||||
domains: string[]
|
||||
filename: string
|
||||
ssl_certificate_path: string
|
||||
ssl_certificate_key_path: string
|
||||
auto_cert: number
|
||||
challenge_method: string
|
||||
dns_credential_id: number
|
||||
dns_credential?: DnsCredential
|
||||
log: string
|
||||
}
|
||||
|
||||
export interface CertificateInfo {
|
||||
subject_name: string
|
||||
issuer_name: string
|
||||
not_after: string
|
||||
not_before: string
|
||||
}
|
||||
|
||||
const cert: Curd<Cert> = new Curd('/cert')
|
||||
|
||||
export default cert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue