Skip to content

Commit

Permalink
chore: rm get area of focus endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Jan 24, 2025
1 parent 172064d commit 21061c8
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Body, Controller, Get, Param, Post, UseGuards } from '@nestjs/common';
import { Body, Controller, Param, Post, UseGuards } from '@nestjs/common';
import {
ApiBearerAuth,
ApiOperation,
Expand All @@ -12,7 +12,6 @@ import { RolesGuard } from '../../roles.guard';
import { DisasterType } from '../disaster/disaster-type.enum';
import { UserRole } from '../user/user-role.enum';
import { UserDecorator } from '../user/user.decorator';
import { AreaOfFocusDto } from './dto/area-of-focus.dto';
import { CheckEapActionDto } from './dto/check-eap-action.dto';
import { AddEapActionsDto } from './dto/eap-action.dto';
import { EapActionStatusEntity } from './eap-action-status.entity';
Expand Down Expand Up @@ -79,16 +78,4 @@ export class EapActionsController {
eapActions,
);
}

@UseGuards(RolesGuard)
@ApiOperation({ summary: 'Get Areas of Focus (categories of EAP-actions)' })
@ApiResponse({
status: 200,
description: 'Areas of focus.',
type: [AreaOfFocusDto],
})
@Get('areas-of-focus')
public async getAreasOfFocus(): Promise<AreaOfFocusDto[]> {
return await this.eapActionsService.getAreasOfFocus();
}
}

0 comments on commit 21061c8

Please sign in to comment.