From faadc61d9f1691cbb7cbfff907495fd3b548c2c8 Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Wed, 17 Aug 2022 07:38:58 +0000 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9A=B0=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.routing.ts | 193 +++++++++++++++++++++-------------------- 1 file changed, 100 insertions(+), 93 deletions(-) diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index c8b387a..ff79203 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -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 + // ), + // }, + // ], + // }, ];