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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("mediaTypes")
|
@GetMapping("media_types")
|
||||||
@ApiOperation("List all of media types")
|
@ApiOperation("Lists all of media types")
|
||||||
public List<String> mediaTypes(){
|
public List<String> listMediaTypes() {
|
||||||
return attachmentService.listAllMediaType();
|
return attachmentService.listAllMediaType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue