feat: add s3 attachment (#291)

This commit is contained in:
Dream Hunter
2024-06-01 20:08:42 +08:00
committed by GitHub
parent e91bbe273a
commit 9725407c77
18 changed files with 1584 additions and 42 deletions

View File

@@ -3,6 +3,7 @@ import { Hono } from 'hono'
import { getDomains, getPasswords, getBooleanValue } from './utils';
import { CONSTANTS } from './constants';
import { HonoCustomType } from './types';
import { isS3Enabled } from './mails_api/s3_attachment';
const api = new Hono<HonoCustomType>
@@ -27,6 +28,7 @@ api.get('/open_api/settings', async (c) => {
"copyright": c.env.COPYRIGHT,
"cfTurnstileSiteKey": c.env.CF_TURNSTILE_SITE_KEY,
"enableWebhook": getBooleanValue(c.env.ENABLE_WEBHOOK),
"isS3Enabled": isS3Enabled(c),
"version": CONSTANTS.VERSION,
});
})