interface split (#943)

This commit is contained in:
Jens L
2021-09-16 17:30:16 +02:00
committed by GitHub
parent d7ab2a362a
commit 9441be1ee2
38 changed files with 1804 additions and 243 deletions

13
web/src/routesUser.ts Normal file
View File

@ -0,0 +1,13 @@
import { html } from "lit-html";
import { Route } from "./elements/router/Route";
import "./user/LibraryPage";
import "./user/user-settings/UserSettingsPage";
export const ROUTES: Route[] = [
// Prevent infinite Shell loops
new Route(new RegExp("^/$")).redirect("/library"),
new Route(new RegExp("^#.*")).redirect("/library"),
new Route(new RegExp("^/library$"), html`<ak-library></ak-library>`),
new Route(new RegExp("^/user$"), html`<ak-user-settings></ak-user-settings>`),
];