新增邮件发送和管理员功能

This commit is contained in:
eoao
2025-05-29 17:38:50 +08:00
parent de742d31e7
commit 2341d14b2d
364 changed files with 24202 additions and 1079 deletions

View File

@@ -0,0 +1,16 @@
import r2Service from '../service/r2-service';
import app from '../hono/hono';
app.get('/file/*', async (c) => {
const key = c.req.path.split('/file/')[1];
const obj = await r2Service.getObj(c, key);
return new Response(obj.body, {
headers: {
'Content-Type': obj.httpMetadata?.contentType || 'application/octet-stream',
'Content-Disposition': obj.httpMetadata?.contentDisposition || null
}
});
});