md-toy-blog
Version:
Very simple Markdown blog: serves your md as html without fancy databases. You will only spend time writing the actual data.
23 lines (22 loc) • 774 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var RouteRegExpValidator = /** @class */ (function () {
function RouteRegExpValidator(config) {
this.config = config;
this.pathRegExp = config.pathRegExp;
this.controller = config.controller;
}
RouteRegExpValidator.prototype.canResolve = function (request) {
return this.matches(request, this.pathRegExp) && this.isValid(request);
};
RouteRegExpValidator.prototype.matches = function (request, pathRegExp) {
return pathRegExp.test(request.url);
};
;
RouteRegExpValidator.prototype.isValid = function (request) {
return true;
};
;
return RouteRegExpValidator;
}());
exports.default = RouteRegExpValidator;