fix(public/notes-controller): bind setUserPermission to an URL

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-09-18 18:29:05 +02:00 committed by Yannick Bungers
parent 3884d79474
commit 068517a73b

View file

@ -254,6 +254,7 @@ export class NotesController {
@UseInterceptors(GetNoteInterceptor) @UseInterceptors(GetNoteInterceptor)
@Permissions(Permission.OWNER) @Permissions(Permission.OWNER)
@UseGuards(TokenAuthGuard, PermissionsGuard) @UseGuards(TokenAuthGuard, PermissionsGuard)
@Put(':noteIdOrAlias/metadata/permissions/users/:userName')
@OpenApi( @OpenApi(
{ {
code: 200, code: 200,