Skip to content

Commit

Permalink
add readis by card
Browse files Browse the repository at this point in the history
  • Loading branch information
zobkazi committed Apr 26, 2024
1 parent cc11ff9 commit 044a7fb
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/services/adoption/src/controllers/petDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ const petDetails = async (req: Request, res: Response, next: NextFunction) => {
},

})

if (!pet) {
return res.status(404).json({ message: "Pet not found" });
}

res.status(200).json({
message: "Pet fetched successfully",
data: pet,
})
} catch (error) {
next(error);
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 044a7fb

Please sign in to comment.