"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function notfound(ctx, next) {
  const {
    pathname
  } = ctx.request.URL; // File 404s

  if (pathname.match(/\.\w{1,4}$/i)) {
    return null;
  }

  return next();
}

var _default = notfound;
exports.default = _default;