mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Move note permission route under metadata
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
3c58c74401
commit
a14056dbc9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue