2023-02-22 13:12:40 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2023-02-27 14:58:23 +00:00
|
|
|
import { LoginComponent } from './login/login.component';
|
2023-02-24 13:54:17 +00:00
|
|
|
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
2023-02-22 13:12:40 +00:00
|
|
|
|
2023-02-24 13:54:17 +00:00
|
|
|
const routes: Routes = [
|
2023-02-27 14:58:23 +00:00
|
|
|
{ path: '', redirectTo: 'login', pathMatch: 'full' },
|
|
|
|
{ path: 'login', component: LoginComponent },
|
2023-02-24 13:54:17 +00:00
|
|
|
{ path: '**', component: PageNotFoundComponent },
|
|
|
|
];
|
2023-02-22 13:12:40 +00:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
2023-02-24 13:54:17 +00:00
|
|
|
exports: [RouterModule],
|
2023-02-22 13:12:40 +00:00
|
|
|
})
|
2023-02-24 13:54:17 +00:00
|
|
|
export class AppRoutingModule {}
|