From 7a74c9660b28ce777d340ad1750a8ebf0924eafe Mon Sep 17 00:00:00 2001 From: Marvin Rode Date: Thu, 16 Nov 2023 08:54:21 +0100 Subject: [PATCH] Fix parameter naming --- src/modules/frontend/api/frontend.controller.ts | 8 ++++---- src/modules/organisation/api/organisation.controller.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/frontend/api/frontend.controller.ts b/src/modules/frontend/api/frontend.controller.ts index 2eb3ee872..3b0c9d258 100644 --- a/src/modules/frontend/api/frontend.controller.ts +++ b/src/modules/frontend/api/frontend.controller.ts @@ -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' }) @@ -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' }) @@ -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' }) @@ -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' }) diff --git a/src/modules/organisation/api/organisation.controller.ts b/src/modules/organisation/api/organisation.controller.ts index 3c69280f8..f957cc39f 100644 --- a/src/modules/organisation/api/organisation.controller.ts +++ b/src/modules/organisation/api/organisation.controller.ts @@ -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.' }) @@ -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.' })