mirror of https://github.com/halo-dev/halo
Resolve attachment relative path problem again.
parent
b138c2f820
commit
94e77c3d4b
|
@ -52,7 +52,8 @@ public class AttachmentController {
|
||||||
@GetMapping("{id:\\d+}")
|
@GetMapping("{id:\\d+}")
|
||||||
@ApiOperation("Get attachment detail by id")
|
@ApiOperation("Get attachment detail by id")
|
||||||
public AttachmentOutputDTO getBy(@PathVariable("id") Integer id) {
|
public AttachmentOutputDTO getBy(@PathVariable("id") Integer id) {
|
||||||
return new AttachmentOutputDTO().convertFrom(attachmentService.getById(id));
|
Attachment attachment = attachmentService.getById(id);
|
||||||
|
return attachmentService.convertToDto(attachment);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue