создал homepage
This commit is contained in:
@@ -6,6 +6,7 @@ import TheLogin from "@/pages/login/TheLogin";
|
||||
import LoggedInLayout from "@/components/LoggedInLayout";
|
||||
import TheMedicalCard from "@/pages/newMedicalCard/TheMedicalCard";
|
||||
import { fetchWrapper } from "@/shared/fetchWrapper";
|
||||
import TheHome from "@/pages/home/TheHome";
|
||||
|
||||
const ifNotAuthenticated = async (to, from, next) => {
|
||||
const data = await fetchWrapper.get("users/me");
|
||||
@@ -34,7 +35,8 @@ export default createRouter({
|
||||
beforeEnter: ifAuthenticated,
|
||||
|
||||
children: [
|
||||
{ path: "", redirect: "calendar" },
|
||||
{ path: "", redirect: "home" },
|
||||
{ path: "home", component: TheHome },
|
||||
{ path: "calendar", component: TheCalendar },
|
||||
{ path: "medcards", component: TheMedcards },
|
||||
{ path: "settings", component: TheSettings },
|
||||
|
||||
Reference in New Issue
Block a user