Update Frontend. Added Homepage

This commit is contained in:
2026-01-31 00:29:48 +01:00
parent 7e2e2f1e69
commit 5d2bc5a7b2
10 changed files with 156 additions and 9 deletions

View File

@@ -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: '' }