// import { Body, Controller, Delete, Patch, Post, Req } from "@nestjs/common";
// // import { LeaveRequestDto } from "../dtos/leave-request.dto";
// import { LeaveRequestsService } from "src/time-and-attendance/leave-requests/services/leave-request.service";

// @Controller('leave-requests')
// export class LeaveRequestController {
//     constructor(private readonly leave_service: LeaveRequestsService) { }

//     // @Post('create')
//     // async create(@Req() req, @Body() dto: LeaveRequestDto) {
//     //     const email = req.user?.email;
//     //     return await this.leave_service.create(email, dto);
//     // }

//     // @Delete('delete')
//     // async delete(@Req() req, @Body() leave_request_id: number) {
//     //     const email = req.user?.email;
//     //     return await this.leave_service.delete(email, leave_request_id);
//     // }

//     // @Patch('update')
//     // async update(@Req() req, @Body() request_id: number, approval_status: string) {
//     //     const email = req.user?.email;
//     //     return await this.leave_service.update(email, request_id, approval_status);
//     // }

// }

