Add Frontend
This commit is contained in:
10
frontend/src/app/app.routes.ts
Normal file
10
frontend/src/app/app.routes.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { ItemListComponent } from './components/item-list/item-list';
|
||||
import { ItemFormComponent } from './components/item-form/item-form';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', component: ItemListComponent },
|
||||
{ path: 'create', component: ItemFormComponent },
|
||||
{ path: 'edit/:id', component: ItemFormComponent },
|
||||
{ path: '**', redirectTo: '' }
|
||||
];
|
||||
Reference in New Issue
Block a user