import { NgModule } from '@angular/core' ; import { CommonModule as NgCommonModule } from '@angular/common' ; import { RouterModule , Routes } from '@angular/router' ; import { FormsModule as NgFormsModule , ReactiveFormsModule , } from '@angular/forms' ; import { CommonModule } from '../../common/common.module' ; import { LegacyModule } from '../legacy/legacy.module' ; import { ModalsModule } from '../modals/modals.module' ; import { MindsFormsModule } from '../forms/forms.module' ; import { LoginComponent } from './login.component' ; import { LogoutComponent } from './logout.component' ; import { RegisterComponent } from './register.component' ; import { ForgotPasswordComponent } from './forgot-password/forgot-password.component' ; import { MarketingModule } from '../marketing/marketing.module' ; import { OnboardingV3Module } from '../onboarding-v3/onboarding.module' ; const routes = [ { path : 'login' , component : LoginComponent , data : { title : 'Login' , description : 'Login to Minds or create a channel' , } , } , { path : 'logout/all' , component : LogoutComponent } , { path : 'logout' , component : LogoutComponent } , { path : 'register' , component : RegisterComponent , data : { title : 'Register' , description : 'Create a channel on Minds' , ogImage : '/assets/og-images/register-v3.png' , ogImageWidth : 1200 , ogImageHeight : 1200 , } , } , { path : 'forgot-password' , component : ForgotPasswordComponent , data : { title : 'Forgot Password' , description : 'Reset your password on Minds' , } , } , ] ; @ NgModule ( { imports : [ NgCommonModule , RouterModule . forChild ( routes ) , NgFormsModule , ReactiveFormsModule , CommonModule , LegacyModule , ModalsModule , MindsFormsModule , MarketingModule , ] , declarations : [ LoginComponent , LogoutComponent , RegisterComponent , ForgotPasswordComponent , ] , exports : [ ForgotPasswordComponent ] , } ) export class AuthModule { }