This commit is contained in:
2021-11-07 22:24:56 +08:00
parent c524d9754d
commit c2eb3704f1
4 changed files with 344 additions and 13 deletions

18
main.js
View File

@@ -1,14 +1,12 @@
// import BtDonwold from "./util/index.js";
import Koa from "koa"
import requter from "./util/Router.js"
const app = new Koa();
// const bt = new BtDonwold({
// ip:"127.0.0.1",
// port:17844
// })
// const str = bt.base64_encode("C:/Users/116296/Desktop/debian-edu-11.0.0-amd64-netinst.iso.torrent")
// bt.addTask("C:/Users/116296/Desktop/debian-edu-11.0.0-amd64-netinst.iso.torrent")
// bt.getList()
// bt.delete("899d629411da83faf1893f77266d8b40b3adecde")
app.use(async ctx => {
ctx.body = 'Hello World';
});
app.listen(4000)