17 lines
543 B
TypeScript
17 lines
543 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { LoginComponent } from './login/login.component';
|
|
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: 'login', pathMatch: 'full' },
|
|
{ path: 'login', component: LoginComponent },
|
|
{ path: '**', component: PageNotFoundComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|