import { Controller, Get, Param, UseGuards } from '@nestjs/common';
import { JwtAuthGuard } from '../common/guards/jwt-auth.guard';
import { ParentGuideService } from './parent-guide.service';

@UseGuards(JwtAuthGuard)
@Controller('parent-guide')
export class ParentGuideController {
  constructor(private readonly parentGuideService: ParentGuideService) {}

  @Get()
  findGeneral() {
    return this.parentGuideService.findGeneral();
  }

  @Get('chapter/:chapterId')
  findForChapter(@Param('chapterId') chapterId: string) {
    return this.parentGuideService.findForChapter(chapterId);
  }
}
