Closed mplekunov closed 1 year ago
The recipe routes have been rewritten to fit our new specifications: Routes differentiate between two cases: Unauthorized && Authorized users.
Unauthorized case happens when request doesn't include "Authorization" header. Authorized case happens when request includes "Authorization" header.
When user is Authorized. Responses (in both get/getAll calls) will contain additional field "isFavorite". When it's set to true, it means this recipe is part of the favorite recipes list of the user and vice versa.
Pls fix merge conflicts
Overall looks good, just pls add logic for hasAllergen
Depends on #94