diff --git a/src/main/java/krusty/Database.java b/src/main/java/krusty/Database.java index c195c06..b46f9ee 100644 --- a/src/main/java/krusty/Database.java +++ b/src/main/java/krusty/Database.java @@ -52,11 +52,18 @@ public class Database { } public String getRawMaterials(Request req, Response res) { - return "{}"; + String query = "SELECT name, stock as amount, unit FROM Ingredient"; + String title = "raw-materials"; + + return getJson(query, title); } public String getCookies(Request req, Response res) { - return "{\"cookies\":[]}"; + String query = "Select name from Cookie"; + String title = "cookies"; + + + return getJson(query, title); } public String getRecipes(Request req, Response res) {