UNPKG

@octokit/webhooks

Version:

GitHub webhook events toolset for Node.js

9 lines (8 loc) 256 B
export function onUnhandledRequestDefault(request, response) { response.writeHead(404, { "content-type": "application/json", }); response.end(JSON.stringify({ error: `Unknown route: ${request.method} ${request.url}`, })); }