Files
authentik/web/src/elements/router/RouteMatch.ts
Jens Langhammer 2c60ec50be web: re-format with prettier
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
2021-08-03 17:52:21 +02:00

24 lines
541 B
TypeScript

import { TemplateResult } from "lit-html";
import { Route } from "./Route";
export class RouteMatch {
route: Route;
arguments: { [key: string]: string };
fullUrl?: string;
constructor(route: Route) {
this.route = route;
this.arguments = {};
}
render(): TemplateResult {
return this.route.render(this.arguments);
}
toString(): string {
return `<RouteMatch url=${this.fullUrl} route=${this.route} arguments=${JSON.stringify(
this.arguments,
)}>`;
}
}