diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/readme.adoc | 1 | ||||
-rw-r--r-- | backend/recipe.go | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/backend/readme.adoc b/backend/readme.adoc index b10ea07..2a00ba5 100644 --- a/backend/readme.adoc +++ b/backend/readme.adoc @@ -37,7 +37,6 @@ The current implementation expects (and returns) recipes in the form: "name": "Ingredient 1 Name", "amount": 1.0, "unit": "Ingredient Units" - "type_": "" }, ], "steps": [ diff --git a/backend/recipe.go b/backend/recipe.go index a3191c3..3511fd6 100644 --- a/backend/recipe.go +++ b/backend/recipe.go @@ -6,8 +6,7 @@ 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 { |