first commit
This commit is contained in:
17
src/edge/edge.controller.ts
Normal file
17
src/edge/edge.controller.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Controller, Get, Header, Query } from '@nestjs/common';
|
||||
import { GetEdgesDto } from './dto/get-edges.dto';
|
||||
import { EdgeService } from './edge.service';
|
||||
|
||||
@Controller('edge')
|
||||
export class EdgeController {
|
||||
constructor(private readonly edge: EdgeService) {}
|
||||
|
||||
/** Возвращает список edge с опциональными фильтрами по parent и тексту. */
|
||||
@Get()
|
||||
@Header('Cache-Control', 'no-store')
|
||||
@Header('Pragma', 'no-cache')
|
||||
@Header('Expires', '0')
|
||||
findAll(@Query() query: GetEdgesDto) {
|
||||
return this.edge.findAll(query);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user