diff --git a/contact-center/app/src/main/java/com/chatopera/cc/controller/resource/MediaController.java b/contact-center/app/src/main/java/com/chatopera/cc/controller/resource/MediaController.java index 4b978ad8760bf42fc18544d6a583a2cb6e3945de..21e4fd34b1c3d5f0d858c8a73bfb9f13b1abc9b1 100644 --- a/contact-center/app/src/main/java/com/chatopera/cc/controller/resource/MediaController.java +++ b/contact-center/app/src/main/java/com/chatopera/cc/controller/resource/MediaController.java @@ -97,15 +97,6 @@ public class MediaController extends Handler { } } - @RequestMapping("/voice") - @Menu(type = "resouce", subtype = "voice", access = true) - public void voice(HttpServletResponse response, @Valid String id) throws IOException { - File file = new File(path, id); - if (file.exists() && file.isFile()) { - response.getOutputStream().write(FileUtils.readFileToByteArray(new File(path, id))); - } - } - @RequestMapping("/url") @Menu(type = "resouce", subtype = "image", access = true) public void url(HttpServletResponse response, @Valid String url) throws IOException {