mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-24 09:39:49 +08:00
feat: add TITLE in worker for custom website title (#276)
This commit is contained in:
@@ -15,6 +15,7 @@ api.get('/open_api/settings', async (c) => {
|
||||
needAuth = !auth || !passwords.includes(auth);
|
||||
}
|
||||
return c.json({
|
||||
"title": c.env.TITLE,
|
||||
"prefix": c.env.PREFIX,
|
||||
"domains": getDomains(c),
|
||||
"needAuth": needAuth,
|
||||
|
||||
1
worker/src/types.d.ts
vendored
1
worker/src/types.d.ts
vendored
@@ -6,6 +6,7 @@ export type Bindings = {
|
||||
SEND_MAIL: any
|
||||
|
||||
// config
|
||||
TITLE: string | undefined
|
||||
PREFIX: string | undefined
|
||||
DOMAINS: string | string[] | undefined
|
||||
PASSWORDS: string | string[] | undefined
|
||||
|
||||
Reference in New Issue
Block a user