mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-10 23:13:12 +08:00
feat: add version for frontend && backend (#230)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Hono } from 'hono'
|
||||
|
||||
import { getDomains, getPasswords, getBooleanValue } from './utils';
|
||||
import { CONSTANTS } from './constants';
|
||||
|
||||
const api = new Hono()
|
||||
|
||||
@@ -22,6 +23,7 @@ api.get('/open_api/settings', async (c) => {
|
||||
"enableAutoReply": getBooleanValue(c.env.ENABLE_AUTO_REPLY),
|
||||
"copyright": c.env.COPYRIGHT,
|
||||
"cfTurnstileSiteKey": c.env.CF_TURNSTILE_SITE_KEY,
|
||||
"version": CONSTANTS.VERSION,
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export const CONSTANTS = {
|
||||
VERSION: 'v0.4.2',
|
||||
ADDRESS_BLOCK_LIST_KEY: 'address_block_list',
|
||||
SEND_BLOCK_LIST_KEY: 'send_block_list',
|
||||
AUTO_CLEANUP_KEY: 'auto_cleanup',
|
||||
|
||||
Reference in New Issue
Block a user