2026_08_31
This commit is contained in:
commit
73015386e9
2320 files changed
+80291
No files matched your search
@@ -0,0 +1,40 @@
|
||||
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common';
|
||||
import { SignalsService } from './signals.service';
|
||||
import { SignalCreateDto, SignalUpdateDto } from 'src/_dto/anlagen/signals';
|
||||
|
||||
@Controller('rk2/signals')
|
||||
export class SignalsController {
|
||||
constructor(private readonly service: SignalsService) { }
|
||||
|
||||
@Get()
|
||||
getAll() {
|
||||
return this.service.findAll();
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
getOne(@Param('id') id: string) {
|
||||
return this.service.findOne(id);
|
||||
}
|
||||
|
||||
@Get("byComponent/:id")
|
||||
getByComponent(@Param('id') id: string) {
|
||||
return this.service.findByComponent(id);
|
||||
}
|
||||
|
||||
@Post()
|
||||
create(@Body() dto: SignalCreateDto) {
|
||||
console.log(dto)
|
||||
return this.service.create(dto);
|
||||
}
|
||||
|
||||
@Patch(':id')
|
||||
update(@Param('id') id: string, @Body() dto: SignalUpdateDto) {
|
||||
return this.service.update(id, dto);
|
||||
}
|
||||
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.service.remove(id);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user