11 lines
271 B
JavaScript
11 lines
271 B
JavaScript
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)
|
|
}
|
|
})
|