Fixed some types
This commit is contained in:
parent
1bf9a7d153
commit
57f6a5c309
3 changed files with 21 additions and 4363 deletions
|
|
@ -15,7 +15,7 @@ export async function GET() {
|
|||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export async function DELETE(req: Request) {
|
||||
|
|
@ -24,5 +24,5 @@ export async function DELETE(req: Request) {
|
|||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
21
lib/types.ts
21
lib/types.ts
|
|
@ -29,7 +29,7 @@ interface UpstreamRequest {
|
|||
}
|
||||
|
||||
interface Provider {
|
||||
api_token: string;
|
||||
api_token?: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
|
|
@ -39,6 +39,8 @@ interface DNS {
|
|||
|
||||
interface Challenges {
|
||||
dns: DNS;
|
||||
email: string;
|
||||
module: string;
|
||||
}
|
||||
|
||||
interface Issuer {
|
||||
|
|
@ -49,7 +51,7 @@ interface Issuer {
|
|||
|
||||
interface Policies {
|
||||
subjects: string[];
|
||||
issuer: Issuer;
|
||||
issuers: Issuer[];
|
||||
}
|
||||
|
||||
interface Server {
|
||||
|
|
@ -70,6 +72,21 @@ interface Apps {
|
|||
};
|
||||
}
|
||||
|
||||
interface Admin {
|
||||
listen: string;
|
||||
|
||||
}
|
||||
|
||||
interface Logging {
|
||||
logs: {
|
||||
default: {
|
||||
level: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
type CaddyConfig = {
|
||||
apps: Apps;
|
||||
admin: Admin;
|
||||
logging?: Logging;
|
||||
};
|
||||
4359
package-lock.json
generated
4359
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue