summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-12-10 12:27:46 -0500
committerTucker Evans <tuckerevans24@gmail.com>2019-12-10 15:14:57 -0500
commitd8e99623986708c7b64984f8bf638a9fbec4a3d2 (patch)
treefef5e9a1db26edfdf8ff23caa179075d7a7fde39 /recipeBuddy/src/app/app-routing.module.ts
parent0f8d2ab5d57334320f8c60b626c5af455eddae4f (diff)
Add edit-recipe form/page
Mostly copied from add recipe page. Updates recipe successfully, but doesn't pull ingredients/steps into form, and doesn't use pass service to get recipe.
Diffstat (limited to 'recipeBuddy/src/app/app-routing.module.ts')
-rw-r--r--recipeBuddy/src/app/app-routing.module.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipeBuddy/src/app/app-routing.module.ts b/recipeBuddy/src/app/app-routing.module.ts
index bb7c96e..9620f04 100644
--- a/recipeBuddy/src/app/app-routing.module.ts
+++ b/recipeBuddy/src/app/app-routing.module.ts
@@ -3,11 +3,13 @@ import { RouterModule, Routes } from '@angular/router';
import { CookPageComponent } from './cook-page/cook-page.component';
import { AddRecipeComponent } from './add-recipe/add-recipe.component';
+import { EditRecipeComponent } from './edit-recipe/edit-recipe.component';
const routes: Routes = [
{ path: '', redirectTo: '/cook', pathMatch: 'full' },
{ path: 'cook', component: CookPageComponent },
- { path: 'add', component: AddRecipeComponent }
+ { path: 'add', component: AddRecipeComponent },
+ { path: 'edit', component: EditRecipeComponent },
];
@NgModule({