新增TG邮件查看HTML
This commit is contained in:
8
mail-worker/src/api/telegram-api.js
Normal file
8
mail-worker/src/api/telegram-api.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import app from '../hono/hono';
|
||||
import telegramService from '../service/telegram-service';
|
||||
|
||||
app.get('/telegram/getEmail/:token', async (c) => {
|
||||
const content = await telegramService.getEmailContent(c, c.req.param());
|
||||
c.header('Cache-Control', 'public, max-age=604800, immutable');
|
||||
return c.html(content)
|
||||
});
|
||||
Reference in New Issue
Block a user