17 lines
490 B
TypeScript
17 lines
490 B
TypeScript
import { Controller, Get, Header, Query } from '@nestjs/common';
|
|
import { GetHistoryDto } from './dto/get-history.dto';
|
|
import { HistoryService } from './history.service';
|
|
|
|
@Controller('history')
|
|
export class HistoryController {
|
|
constructor(private readonly history: HistoryService) {}
|
|
|
|
@Get()
|
|
@Header('Cache-Control', 'no-store')
|
|
@Header('Pragma', 'no-cache')
|
|
@Header('Expires', '0')
|
|
findSeries(@Query() query: GetHistoryDto) {
|
|
return this.history.findSeries(query);
|
|
}
|
|
}
|