Co-authored-by: clfreville2 <clement.freville2@etu.uca.fr> Reviewed-on: https://codefirst.iut.uca.fr/git/clement.freville2/tiramisu/pulls/3
12 lines
500 B
TypeScript
12 lines
500 B
TypeScript
import { Routes } from '@angular/router';
|
|
import { RecipeAddComponent } from './recipe-add/recipe-add.component';
|
|
import { RecipeComponent } from './recipe/recipe.component';
|
|
import { RecipesComponent } from './recipes/recipes.component';
|
|
|
|
export const routes: Routes = [
|
|
{ path: 'recipes', component: RecipesComponent },
|
|
{ path: 'recipe/add', component: RecipeAddComponent },
|
|
{ path: 'recipe/:id', component: RecipeComponent },
|
|
{ path: 'recipe/:id/edit', component: RecipeAddComponent },
|
|
];
|