[frontend] Add homepage and not found routes
This commit is contained in:
parent
5109d296bc
commit
e308d0d83b
|
@ -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 {}
|
||||||
|
|
Loading…
Reference in a new issue