@@ -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] }),
|
||||
|
||||
Reference in New Issue
Block a user