update 移除重复方法
This commit is contained in:
parent
1169a9b997
commit
4c8f7f4356
@ -1,5 +1,5 @@
|
|||||||
const Router = require("koa-router")
|
const Router = require("koa-router")
|
||||||
const {serach, gen_douban} = require("../util/ptgen")
|
const {search, gen_douban} = require("../util/ptgen")
|
||||||
const axios = require("axios")
|
const axios = require("axios")
|
||||||
const cheerio = require("cheerio");
|
const cheerio = require("cheerio");
|
||||||
const {addSub, getSub, delSub} = require("../util/sql/video"); // HTML页面解析
|
const {addSub, getSub, delSub} = require("../util/sql/video"); // HTML页面解析
|
||||||
@ -8,21 +8,12 @@ const router = new Router({
|
|||||||
prefix: "/videoInfo"
|
prefix: "/videoInfo"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 可能为重复方法
|
|
||||||
*/
|
|
||||||
router.get("/search", async (ctx) => {
|
|
||||||
let name = ctx.query.name
|
|
||||||
ctx.body = await serach(name)
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 豆瓣搜索
|
* 豆瓣搜索
|
||||||
*/
|
*/
|
||||||
router.get("/searchVideo", async (ctx) => {
|
router.get("/searchVideo", async (ctx) => {
|
||||||
let name = ctx.query.name
|
let name = ctx.query.name
|
||||||
ctx.body = await serach(name)
|
ctx.body = await search(name)
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user