1 | {"version":3,"file":"unhandled.js","sourceRoot":"","sources":["../../../../src/lib/middleware/unhandled.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,oEAAsC;IAGtC,SAAwB,SAAS;QAC/B,OAAO,UAAC,OAAO,EAAE,EAAE,EAAE,IAAI;YACvB,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE;gBACzD,IAAI,CAAC,qBAAW,CAAC,GAAG,CAAC,CAAC,CAAC;aACxB;iBAAM;gBACL,IAAI,CAAC,qBAAW,CAAC,GAAG,CAAC,CAAC,CAAC;aACxB;QACH,CAAC,CAAC;IACJ,CAAC;IARD,4BAQC","sourcesContent":["import createError from 'http-errors';\nimport { RequestHandler } from 'express';\n\nexport default function unhandled(): RequestHandler {\n return (request, __, next) => {\n if (request.method === 'GET' || request.method === 'HEAD') {\n next(createError(404));\n } else {\n next(createError(501));\n }\n };\n}\n"]} |