Skip to content

Commit

Permalink
Fix parameter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
marode-cap committed Nov 16, 2023
1 parent 23dbd60 commit 7a74c96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/modules/frontend/api/frontend.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class FrontendController {
return this.organisationService.getRoot(user);
}

@Get('organisationen/:organisationsId/verwaltet')
@Get('organisationen/:organisationId/verwaltet')
@UseGuards(AuthenticatedGuard)
@ApiUnauthorizedResponse({ description: 'User is not logged in.' })
@ApiOkResponse({ description: 'Returns all administered organizations' })
Expand All @@ -159,7 +159,7 @@ export class FrontendController {
return this.organisationService.findVerwaltetVon(params.organisationId, user);
}

@Get('organisationen/:organisationsId/zugehoerig')
@Get('organisationen/:organisationId/zugehoerig')
@UseGuards(AuthenticatedGuard)
@ApiUnauthorizedResponse({ description: 'User is not logged in.' })
@ApiOkResponse({ description: 'Returns all owned organizations' })
Expand All @@ -170,7 +170,7 @@ export class FrontendController {
return this.organisationService.findZugehoerigZu(params.organisationId, user);
}

@Post('organisationen/:organisationsId/verwaltet')
@Post('organisationen/:organisationId/verwaltet')
@UseGuards(AuthenticatedGuard)
@ApiUnauthorizedResponse({ description: 'User is not logged in.' })
@ApiOkResponse({ description: 'organisation was successfully updated' })
Expand All @@ -182,7 +182,7 @@ export class FrontendController {
return this.organisationService.setVerwaltetVon(params.organisationId, body.organisationId, user);
}

@Post('organisationen/:organisationsId/zugehoerig')
@Post('organisationen/:organisationId/zugehoerig')
@UseGuards(AuthenticatedGuard)
@ApiUnauthorizedResponse({ description: 'User is not logged in.' })
@ApiOkResponse({ description: 'organisation was successfully updated' })
Expand Down
4 changes: 2 additions & 2 deletions src/modules/organisation/api/organisation.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class OrganisationController {
return response;
}

@Post(':organisationsId/verwaltet')
@Post(':organisationId/verwaltet')
@ApiCreatedResponse({ description: 'The organisation was successfully updated.' })
@ApiBadRequestResponse({ description: 'The organisation could not be modified.' })
@ApiUnauthorizedResponse({ description: 'Not authorized to modify the organisation.' })
Expand Down Expand Up @@ -155,7 +155,7 @@ export class OrganisationController {
return response;
}

@Post(':organisationsId/zugehoerig')
@Post(':organisationId/zugehoerig')
@ApiCreatedResponse({ description: 'The organisation was successfully updated.' })
@ApiBadRequestResponse({ description: 'The organisation could not be modified.' })
@ApiUnauthorizedResponse({ description: 'Not authorized to modify the organisation.' })
Expand Down

0 comments on commit 7a74c96

Please sign in to comment.