[frontend] Add homepage and not found routes

This commit is contained in:
Cathy Hu 2020-07-25 22:20:35 +02:00
parent 5109d296bc
commit e308d0d83b

View file

@ -1,11 +1,15 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from '@angular/router';
import { NotFoundComponent } from './shared/not-found/not-found.component';
import { HomepageComponent } from './homepage/homepage.component';
const routes: Routes = [
const routes: Routes = []; { path: '', component: HomepageComponent },
{ path: '**', component: NotFoundComponent },
];
@NgModule({ @NgModule({
imports: [RouterModule.forRoot(routes)], imports: [RouterModule.forRoot(routes)],
exports: [RouterModule] exports: [RouterModule],
}) })
export class AppRoutingModule { } export class AppRoutingModule {}