mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
6 changed files with 22 additions and 30 deletions
@ -1,15 +0,0 @@ |
|||||
import { NgModule } from '@angular/core'; |
|
||||
import { RouterModule, Routes } from '@angular/router'; |
|
||||
|
|
||||
import { AuthPageComponent } from './auth-page.component'; |
|
||||
|
|
||||
const routes: Routes = [ |
|
||||
{ component: AuthPageComponent, path: '' }, |
|
||||
{ component: AuthPageComponent, path: ':jwt' } |
|
||||
]; |
|
||||
|
|
||||
@NgModule({ |
|
||||
imports: [RouterModule.forChild(routes)], |
|
||||
exports: [RouterModule] |
|
||||
}) |
|
||||
export class AuthPageRoutingModule {} |
|
@ -1,11 +0,0 @@ |
|||||
import { CommonModule } from '@angular/common'; |
|
||||
import { NgModule } from '@angular/core'; |
|
||||
|
|
||||
import { AuthPageRoutingModule } from './auth-page-routing.module'; |
|
||||
import { AuthPageComponent } from './auth-page.component'; |
|
||||
|
|
||||
@NgModule({ |
|
||||
declarations: [AuthPageComponent], |
|
||||
imports: [AuthPageRoutingModule, CommonModule] |
|
||||
}) |
|
||||
export class AuthPageModule {} |
|
@ -0,0 +1,18 @@ |
|||||
|
import { internalRoutes } from '@ghostfolio/common/routes/routes'; |
||||
|
|
||||
|
import { Routes } from '@angular/router'; |
||||
|
|
||||
|
import { GfAuthPageComponent } from './auth-page.component'; |
||||
|
|
||||
|
export const routes: Routes = [ |
||||
|
{ |
||||
|
component: GfAuthPageComponent, |
||||
|
path: '', |
||||
|
title: internalRoutes.auth.title |
||||
|
}, |
||||
|
{ |
||||
|
component: GfAuthPageComponent, |
||||
|
path: ':jwt', |
||||
|
title: internalRoutes.auth.title |
||||
|
} |
||||
|
]; |
Loading…
Reference in new issue