styling
This commit is contained in:
parent
6f8f03e206
commit
f3f5f232e6
20 changed files with 1351 additions and 193 deletions
|
@ -12,7 +12,7 @@ app.use(express.json());
|
|||
// ### GET ALL RECIPES ###
|
||||
app.get("/recipes", async (req, res) => {
|
||||
try {
|
||||
const recipes = await db('recipes').select('id', 'name');
|
||||
const recipes = await db('recipes').select('id', 'name', 'cuisine');
|
||||
res.json(recipes);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue