Move note permission route under metadata

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-01-10 20:25:28 +01:00
parent 0f215fc8ad
commit 4a1bec8eec
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 2 additions and 2 deletions

View file

@ -346,7 +346,7 @@ paths:
content: content:
text/plain: text/plain:
example: my-note example: my-note
/notes/{note}/permissions: /notes/{note}/metadata/permissions:
put: put:
tags: [ note ] tags: [ note ]
summary: Set permissions of a note summary: Set permissions of a note

View file

@ -115,7 +115,7 @@ export class NotesController {
} }
} }
@Put(':noteIdOrAlias/permissions') @Put(':noteIdOrAlias/metadata/permissions')
async updateNotePermissions( async updateNotePermissions(
@Param('noteIdOrAlias') noteIdOrAlias: string, @Param('noteIdOrAlias') noteIdOrAlias: string,
@Body() updateDto: NotePermissionsUpdateDto, @Body() updateDto: NotePermissionsUpdateDto,