mirror of https://github.com/halo-dev/halo
Change list media types api path to snake style
parent
175739dbd4
commit
287250358e
|
@ -101,9 +101,9 @@ public class AttachmentController {
|
|||
return result;
|
||||
}
|
||||
|
||||
@GetMapping("mediaTypes")
|
||||
@ApiOperation("List all of media types")
|
||||
public List<String> mediaTypes(){
|
||||
@GetMapping("media_types")
|
||||
@ApiOperation("Lists all of media types")
|
||||
public List<String> listMediaTypes() {
|
||||
return attachmentService.listAllMediaType();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue