Untitled
unknown
plain_text
a year ago
737 B
14
Indexable
Car Controller :
verifyListOfCars = async (req: Request, res: Response): Promise<void> => {
const { carIds } = req.body;
await this.carService.verifyListOfCars(carIds, req, res);
};
verifyCarById = async (req: Request, res: Response): Promise<void> => {
const { id } = req.body;
await this.carService.verifyCarById(id, req, res);
};
// Get all cars by slug and ID
getAllCarsBySlugAndId = async (req: Request, res: Response) => {
await this.carService.getAllCarsBySlugAndId(req, res);
};
// Get a unique car by slug and ID
getCarBySlugAndId = async (req: Request, res: Response) => {
const { id } = req.params;
await this.carService.getCarBySlugAndId(id, req, res);
};Editor is loading...
Leave a Comment