14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import { Controller, Post, Body } from '@nestjs/common';
|
|
import { RouteService } from './route.service';
|
|
import { RouteBodyDto } from './dto/route.dto';
|
|
|
|
@Controller('route')
|
|
export class RouteController {
|
|
constructor(private routeService: RouteService) {}
|
|
|
|
@Post('list')
|
|
getRoutes(@Body() dto: RouteBodyDto) {
|
|
return this.routeService.getRoutes(dto);
|
|
}
|
|
}
|