Files
bidding_watcher/src/bids/controllers/bid.controller.ts

28 lines
592 B
TypeScript
Raw Normal View History

2026-01-09 23:18:52 +08:00
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();
}
2026-01-09 23:18:52 +08:00
@Get('high-priority')
getHighPriority() {
return this.bidsService.getHighPriorityCorrected();
}
@Get('sources')
getSources() {
return this.bidsService.getSources();
}
2026-01-09 23:18:52 +08:00
}