RegGPT-Front-End / src /app /app-routing.module.ts
Hammaad
added initial files
b7b370e
raw
history blame
623 Bytes
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LogonComponent } from './features/logon/logon.component';
import { HomeComponent } from './features/home/home.component';
import { AuthGuard } from './core/guards/auth.gaurd';
const routes: Routes = [
{ path: '', component: LogonComponent, data: { title: 'Login Page' }},
{ path: 'chat', component: HomeComponent, data: { title: 'chat Page' }}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }