mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 17:01:03 +00:00
Use POST /media
for file upload
The old `/media/upload` subpath does not follow the convention of REST APIs. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
eb77642604
commit
f4c73a8f96
2 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ paths:
|
|||
content:
|
||||
text/plain:
|
||||
example: my-note
|
||||
/media/upload:
|
||||
/media:
|
||||
post:
|
||||
tags:
|
||||
- media
|
||||
|
|
|
@ -23,7 +23,7 @@ export class MediaController {
|
|||
this.logger.setContext(MediaController.name);
|
||||
}
|
||||
|
||||
@Post('upload')
|
||||
@Post()
|
||||
@UseInterceptors(FileInterceptor('file'))
|
||||
async uploadImage(
|
||||
@UploadedFile() file: MulterFile,
|
||||
|
|
Loading…
Reference in a new issue