Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.02 KB

README.md

File metadata and controls

51 lines (42 loc) · 1.02 KB

路由架构参考

express 拆分路由 - 掘金

[Express 4.x - API Reference #router](https://expressjs.com/en/4x/api.html#router

以下接口不做说明,均使用GET方法。

功能接口

图书馆查询接口

https://api.never2.top/search/book/books/:searchValue/:pageIndex
fetch("https://api.never2.top/search/book/books/你好/1", {
      "method": "GET",
      "headers": {}
})
axios({
	"method": "GET",
	"url": "https://api.never2.top/search/book/books/你好/1"
})

书籍详情

https://api.never2.top/search/book/detail/:bookID
// Request (3) (GET https://api.never2.top/search/book/detail/1601560)
fetch("https://api.never2.top/search/book/detail/1601560", {
  "method": "GET",
  "headers": {}
})
axios({
	"method": "GET",
	"url": "https://api.never2.top/search/book/detail/1601560"
})

统计接口

https://api.never2.top/collect/searchvalue