Files
cloud-mail/mail-worker/src/api/telegram-api.js
2025-10-23 00:22:45 +08:00

10 lines
312 B
JavaScript

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)
});