import { Controller, Get, Query } from '@nestjs/common'; import { BidsService } from '../services/bid.service'; @Controller('api/bids') export class BidsController { constructor(private readonly bidsService: BidsService) {} @Get() findAll(@Query() query: any) { return this.bidsService.findAll(query); } @Get('recent') getRecent() { return this.bidsService.getRecentBids(); } @Get('high-priority') getHighPriority() { return this.bidsService.getHighPriorityCorrected(); } @Get('sources') getSources() { return this.bidsService.getSources(); } @Get('by-date-range') getByDateRange(@Query('startDate') startDate: string, @Query('endDate') endDate: string) { return this.bidsService.getBidsByDateRange(startDate, endDate); } }