-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/recipes #35
base: dev
Are you sure you want to change the base?
Feature/recipes #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quelques trucs à revoir mais t'as compris comment créé le back, bien joué ! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Juste deux petits détails à résoudre mais tu peux merge si tu veux :)
times: { type: Number, required: true }, | ||
difficulty: { type: String, required: true }, | ||
ingredients: { | ||
quantity: { type: Number }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu as juste oublié de mettre en required la qauntité des ingrédients. si cela est facultatif ignore mon commentaire
const recipeController = new RecipeController(); | ||
const recipeRouter = express.Router(); | ||
|
||
recipeRouter.post('/createrecipe', recipeController.createRecipe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pas besoin de la route 'createrecipe', juste '/' devrait suffire étant donné que le terme 'post' parle de lui -même
No description provided.