新增邮件发送和管理员功能
This commit is contained in:
10
mail-worker/src/api/resend-api.js
Normal file
10
mail-worker/src/api/resend-api.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import resendService from '../service/resend-service';
|
||||
import app from '../hono/hono';
|
||||
app.post('/webhooks',async (c) => {
|
||||
try {
|
||||
await resendService.webhooks(c, await c.req.json());
|
||||
return c.text('success', 200)
|
||||
} catch (e) {
|
||||
return c.text(e.message, 500)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user