import { Body, Controller, Delete, Get, Param, Post } from '@nestjs/common';
import { WorkActivityRecordInput, WorkActivityService } from './work-activity.service';

@Controller('work-activities')
export class WorkActivityController {
  constructor(private readonly workActivityService: WorkActivityService) {}

  @Get()
  findAll() {
    return this.workActivityService.findAll();
  }

  @Post()
  create(@Body() dto: WorkActivityRecordInput) {
    return this.workActivityService.record(dto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.workActivityService.remove(id);
  }
}
