mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
function onUnhandledRequestDefault(request, response) {
|
|
response.writeHead(404, {
|
|
"content-type": "application/json"
|
|
});
|
|
response.end(
|
|
JSON.stringify({
|
|
error: `Unknown route: ${request.method} ${request.url}`
|
|
})
|
|
);
|
|
}
|
|
export {
|
|
onUnhandledRequestDefault
|
|
};
|