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 3c58c74401
commit a14056dbc9
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:
text/plain:
example: my-note
/notes/{note}/permissions:
/notes/{note}/metadata/permissions:
put:
tags: [ 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(
@Param('noteIdOrAlias') noteIdOrAlias: string,
@Body() updateDto: NotePermissionsUpdateDto,