improved About page + route

ref #5
This commit is contained in:
2020-12-30 18:16:42 +01:00
parent 1dc498302f
commit 45cd532c1a
3 changed files with 156 additions and 3 deletions

View File

@@ -18,6 +18,7 @@
import NotFound from "./components/NotFound.svelte";
import store from "./store.js";
import ForgotPassword from "./components/ForgotPassword.svelte";
import About from "./components/About.svelte";
store.init();
//
const checkAuth = (detail) => {
@@ -29,6 +30,7 @@
return true;
};
const routes = {
"/about": About,
"/login": Login,
"/forgot_password": ForgotPassword,
"/dashboard": wrap({ component: Dashboard, conditions: [checkAuth] }),