This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-06 17:02:40 +00:00
|
|
|
import { Route } from "@goauthentik/web/elements/router/Route";
|
|
|
|
import "@goauthentik/web/user/LibraryPage";
|
2021-09-16 15:30:16 +00:00
|
|
|
|
2022-09-06 17:02:40 +00:00
|
|
|
import { html } from "lit";
|
2021-09-16 15:30:16 +00:00
|
|
|
|
|
|
|
export const ROUTES: Route[] = [
|
|
|
|
// Prevent infinite Shell loops
|
|
|
|
new Route(new RegExp("^/$")).redirect("/library"),
|
|
|
|
new Route(new RegExp("^#.*")).redirect("/library"),
|
2022-05-14 15:07:37 +00:00
|
|
|
new Route(new RegExp("^/library$"), async () => html`<ak-library></ak-library>`),
|
|
|
|
new Route(new RegExp("^/settings$"), async () => {
|
2022-07-01 14:56:23 +00:00
|
|
|
await import("@goauthentik/web/user/user-settings/UserSettingsPage");
|
2022-05-14 15:07:37 +00:00
|
|
|
return html`<ak-user-settings></ak-user-settings>`;
|
|
|
|
}),
|
2021-09-16 15:30:16 +00:00
|
|
|
];
|