cloud creation
This commit is contained in:
16
src/history/history.controller.ts
Normal file
16
src/history/history.controller.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user