import { Controller, Get, Param } from '@nestjs/common';
import { CommunityService } from './community.service';

@Controller('community')
export class CommunityController {
  constructor(private readonly communityService: CommunityService) {}

  @Get('goals')
  getActiveGoals() {
    return this.communityService.getActiveGoals();
  }

  @Get('goals/:id/top')
  getTopContributors(@Param('id') goalId: string) {
    return this.communityService.getTopContributors(goalId);
  }

  @Get('boosts')
  getActiveBoosts() {
    return this.communityService.getActiveBoosts();
  }
}
