From a14056dbc98a9f6af3a4c0f16e92cf44a5b5026f Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 10 Jan 2021 20:25:28 +0100 Subject: [PATCH] Move note permission route under metadata Signed-off-by: David Mehren --- docs/content/dev/public_api.yml | 2 +- src/api/public/notes/notes.controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/dev/public_api.yml b/docs/content/dev/public_api.yml index e3fb3ebf7..545462ed5 100644 --- a/docs/content/dev/public_api.yml +++ b/docs/content/dev/public_api.yml @@ -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 diff --git a/src/api/public/notes/notes.controller.ts b/src/api/public/notes/notes.controller.ts index e50437867..8cf74bb4b 100644 --- a/src/api/public/notes/notes.controller.ts +++ b/src/api/public/notes/notes.controller.ts @@ -115,7 +115,7 @@ export class NotesController { } } - @Put(':noteIdOrAlias/permissions') + @Put(':noteIdOrAlias/metadata/permissions') async updateNotePermissions( @Param('noteIdOrAlias') noteIdOrAlias: string, @Body() updateDto: NotePermissionsUpdateDto,