mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-22 03:45:52 +08:00
新增TG邮件查看HTML
This commit is contained in:
@@ -14,7 +14,6 @@ app.put('/role/setDefault', async (c) => {
|
||||
return c.json(result.ok());
|
||||
});
|
||||
|
||||
|
||||
app.put('/role/set', async (c) => {
|
||||
await roleService.setRole(c, await c.req.json());
|
||||
return c.json(result.ok());
|
||||
|
||||
@@ -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