add koa
This commit is contained in:
18
main.js
18
main.js
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user