UNPKG

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.

17 lines (16 loc) 505 B
import RoutePathValidator from "./RoutePathValidator"; export default class BlogHomeRoute extends RoutePathValidator { controller: RouteControllerCtorConfig<BlogHomeControllerActionParams>; constructor(public config: BlogHomeRouteCtorConfigProps) { super(config); this.controller = config.controller; } protected matches(req: HttpRequest, paths: string[]) { return super.matches(req, paths) && req.url === paths[0]; } protected isValid(req: HttpRequest) { return true; } }