Files
cloud-v3/src/edge/edge.controller.ts
Первов Артем 05a9e0e535 first commit
2026-06-19 08:18:52 +03:00

18 lines
583 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
}
}