提交 a28e57aa 编写于 作者: Y Yu

close #435 remove API res/voice

上级 44a20cd6
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册