10 lines
312 B
JavaScript
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)
|
|
});
|
|
|