mirror of
https://github.com/chatopera/cosin.git
synced 2025-06-16 18:30:03 +08:00
close #435 remove API res/voice
This commit is contained in:
parent
44a20cd6b0
commit
a28e57aa3a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user