import { Controller, Get, Query } from '@nestjs/common';
import { MastersService } from './masters.service';

@Controller('masters')
export class MastersController {
  constructor(private readonly mastersService: MastersService) {}

  // GET /masters?type=status
  @Get()
  findByType(@Query('type') type?: string) {
    return this.mastersService.findByType(type ?? '');
  }
}
