14 lines
334 B
TypeScript
14 lines
334 B
TypeScript
import { Controller, Get, Param } from '@nestjs/common';
|
|
import { ComponentsService } from './components.service';
|
|
|
|
@Controller('rk2/components')
|
|
export class ComponentsController {
|
|
constructor(private readonly service: ComponentsService) { }
|
|
|
|
@Get(':id')
|
|
getOne(@Param('id') id: string) {
|
|
return this.service.findOne(id);
|
|
}
|
|
|
|
}
|