18 lines
427 B
TypeScript
18 lines
427 B
TypeScript
|
|
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('high-priority')
|
||
|
|
getHighPriority() {
|
||
|
|
return this.bidsService.getHighPriorityCorrected();
|
||
|
|
}
|
||
|
|
}
|