diff options
author | schencej <55326070+schencej@users.noreply.github.com> | 2019-12-10 17:27:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 17:27:29 -0500 |
commit | d28256cb2efa3bd371d1e221b0411d66cf6b8345 (patch) | |
tree | 16638a5b2526ba10b4f9fd6053574200872b8f74 /backend/recipe.go | |
parent | 0f8d2ab5d57334320f8c60b626c5af455eddae4f (diff) | |
parent | c85f7519729d5ad4120f60d742e5f5e6f62d136e (diff) |
Merge pull request #17 from tuckerevans/backend_json
Fix ingredient unit type to be same across frontend & backend
Diffstat (limited to 'backend/recipe.go')
-rw-r--r-- | backend/recipe.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/recipe.go b/backend/recipe.go index a3191c3..59b7366 100644 --- a/backend/recipe.go +++ b/backend/recipe.go @@ -6,12 +6,11 @@ import "strings" type Ingredient struct { Name string `json:"name"` Amount float64 `json:"amount"` - Unit string `json:"units"` - Type string `json:"type"` + Unit string `json:"unit"` } type Step struct { - Desc string `json:"instructions"` + Desc string `json:"instruction"` Time int `json:"timer"` } |