Skip to content

Commit

Permalink
pet details.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zobkazi committed Apr 26, 2024
1 parent 6a9dc93 commit cc11ff9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/services/adoption/src/controllers/petDetails.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
import { Request, Response, NextFunction } from "express";
import prisma from "@/utils/prisma";
import { CreatePetSchema } from "@/utils/schemas";
import { CreatePetSchema } from "@/utils/schemas";


const petDetails = async (req: Request, res: Response, next: NextFunction) => {
try {
// req.params
const { id } = req.params;

const pet = await prisma.pet.findFirst({
where: {
id,
},

})
} catch (error) {
next(error);
}
}

0 comments on commit cc11ff9

Please sign in to comment.