Skip to content

Commit

Permalink
/cuisines/{cuisineId} response format reimplemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
EnesBaserr committed May 14, 2024
1 parent 4ebb819 commit dee2424
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public ResponseEntity<?> getCuisineById(@PathVariable String cuisineId, @Request
CuisineDetailsDto cuisineDetails = cuisineService.getCuisineById(cuisineId, Boolean.TRUE.equals(includeDishes));
return ResponseEntity.ok(new SuccessResponse<>(200,cuisineDetails, "Cuisine details fetched successfully"));
} catch (EntityNotFoundException e) {
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ErrorResponse(204,"Cuisine not found"));
return ResponseEntity.ok(new ErrorResponse(204,"Cuisine not found"));
}
}
}

0 comments on commit dee2424

Please sign in to comment.