完善BT下载器,机器人可以控制刷新下载了
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.yutou.nas.Controllers;
|
||||
|
||||
import com.yutou.nas.utils.BTDownloadManager;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
@Controller
|
||||
public class BTDownloadController {
|
||||
|
||||
@ResponseBody
|
||||
@RequestMapping("/bt/down.do")
|
||||
public String bt(){
|
||||
BTDownloadManager.getInstance().start();
|
||||
return "ok";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user