Change list media types api path to snake style

pull/146/head
johnniang 2019-04-20 21:27:20 +08:00
parent 175739dbd4
commit 287250358e
1 changed files with 3 additions and 3 deletions

View File

@ -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();
} }
} }