Skip to content

Latest commit

 

History

History

webhook

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mix Space Core Webhook SDK

pnpm install @mx-space/webhook

Usage

const handler = createHandler({
  secret: 'your_secret',
})

ctx.server.post('/mx/webhook', (req, res) => {
  handler(req.raw, res.raw)
})

handler.emitter.on(event, callback)

MIT