Update Frontend. Added Homepage
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { ItemListComponent } from './components/item-list/item-list';
|
||||
import { ItemFormComponent } from './components/item-form/item-form';
|
||||
import { HomeComponent } from './components/home/home';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', component: ItemListComponent },
|
||||
{ path: '', component: HomeComponent },
|
||||
{ path: 'admin', component: ItemListComponent },
|
||||
{ path: 'create', component: ItemFormComponent },
|
||||
{ path: 'edit/:id', component: ItemFormComponent },
|
||||
{ path: '**', redirectTo: '' }
|
||||
|
||||
Reference in New Issue
Block a user