라우트 수정

This commit is contained in:
Park Byung Eun 2022-08-17 07:38:58 +00:00
parent dc149cb4f1
commit faadc61d9f

View File

@ -27,99 +27,6 @@ export const appRoutes: Route[] = [
data: {
layout: 'empty',
},
children: [
{
path: 'confirmation-required',
loadChildren: () =>
import(
'app/modules/auth/confirmation-required/confirmation-required.module'
).then((m: any) => m.AuthConfirmationRequiredModule),
},
{
path: 'forgot-password',
loadChildren: () =>
import(
'app/modules/auth/forgot-password/forgot-password.module'
).then((m: any) => m.AuthForgotPasswordModule),
},
{
path: 'reset-password',
loadChildren: () =>
import('app/modules/auth/reset-password/reset-password.module').then(
(m: any) => m.AuthResetPasswordModule
),
},
{
path: 'sign-in',
loadChildren: () =>
import('app/modules/auth/sign-in/sign-in.module').then(
(m: any) => m.AuthSignInModule
),
},
{
path: 'sign-up',
loadChildren: () =>
import('app/modules/auth/sign-up/sign-up.module').then(
(m: any) => m.AuthSignUpModule
),
},
],
},
// Auth routes for authenticated users
{
path: '',
canActivate: [AuthGuard],
canActivateChild: [AuthGuard],
component: LayoutComponent,
data: {
layout: 'empty',
},
children: [
{
path: 'sign-out',
loadChildren: () =>
import('app/modules/auth/sign-out/sign-out.module').then(
(m: any) => m.AuthSignOutModule
),
},
{
path: 'unlock-session',
loadChildren: () =>
import('app/modules/auth/unlock-session/unlock-session.module').then(
(m: any) => m.AuthUnlockSessionModule
),
},
],
},
// Landing routes
{
path: '',
component: LayoutComponent,
data: {
layout: 'empty',
},
children: [
{
path: 'home',
loadChildren: () =>
import('app/modules/landing/home/home.module').then(
(m: any) => m.LandingHomeModule
),
},
],
},
// Admin routes
{
path: '',
canActivate: [AuthGuard],
canActivateChild: [AuthGuard],
component: LayoutComponent,
resolve: {
initialData: InitialDataResolver,
},
children: [
{
path: 'main',
@ -128,6 +35,106 @@ export const appRoutes: Route[] = [
(m: any) => m.MainModule
),
},
// {
// path: 'confirmation-required',
// loadChildren: () =>
// import(
// 'app/modules/auth/confirmation-required/confirmation-required.module'
// ).then((m: any) => m.AuthConfirmationRequiredModule),
// },
// {
// path: 'forgot-password',
// loadChildren: () =>
// import(
// 'app/modules/auth/forgot-password/forgot-password.module'
// ).then((m: any) => m.AuthForgotPasswordModule),
// },
// {
// path: 'reset-password',
// loadChildren: () =>
// import('app/modules/auth/reset-password/reset-password.module').then(
// (m: any) => m.AuthResetPasswordModule
// ),
// },
// {
// path: 'sign-in',
// loadChildren: () =>
// import('app/modules/auth/sign-in/sign-in.module').then(
// (m: any) => m.AuthSignInModule
// ),
// },
// {
// path: 'sign-up',
// loadChildren: () =>
// import('app/modules/auth/sign-up/sign-up.module').then(
// (m: any) => m.AuthSignUpModule
// ),
// },
],
},
// Auth routes for authenticated users
// {
// path: '',
// canActivate: [AuthGuard],
// canActivateChild: [AuthGuard],
// component: LayoutComponent,
// data: {
// layout: 'empty',
// },
// children: [
// {
// path: 'sign-out',
// loadChildren: () =>
// import('app/modules/auth/sign-out/sign-out.module').then(
// (m: any) => m.AuthSignOutModule
// ),
// },
// {
// path: 'unlock-session',
// loadChildren: () =>
// import('app/modules/auth/unlock-session/unlock-session.module').then(
// (m: any) => m.AuthUnlockSessionModule
// ),
// },
// ],
// },
// Landing routes
// {
// path: '',
// component: LayoutComponent,
// data: {
// layout: 'empty',
// },
// children: [
// {
// path: 'home',
// loadChildren: () =>
// import('app/modules/landing/home/home.module').then(
// (m: any) => m.LandingHomeModule
// ),
// },
// ],
// },
// Admin routes
// {
// path: '',
// canActivate: [AuthGuard],
// canActivateChild: [AuthGuard],
// component: LayoutComponent,
// resolve: {
// initialData: InitialDataResolver,
// },
// children: [
// {
// path: 'main',
// loadChildren: () =>
// import('app/modules/user/main/main.module').then(
// (m: any) => m.MainModule
// ),
// },
// ],
// },
];