diff --git a/api/auth.js b/api/auth.js deleted file mode 100644 index 1be8452..0000000 --- a/api/auth.js +++ /dev/null @@ -1,13 +0,0 @@ -export default function (req,res,next) { - // req 是 Node.js http request 对象 - // console.log(req.ctx.body={code:200}) - // console.log(res) - // ctx.body={ - // code:200 - // } - //next是一个调用下一个中间件的函数 - // 如果您的中间件不是最终执行,请不要忘记在最后调用next! - next() -} - - diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..2ff0120 --- /dev/null +++ b/api/index.js @@ -0,0 +1,16 @@ +// import $axios from '@nuxtjs/axios' +// console.log($axios({ +// method:'POST', +// url:'/', +// data:{}, +// params:{} +// })); + +// export default ($axios)=>{ +// return { +// register(){$axios({ +// method:'POST', +// url:'' +// })} +// } +// } \ No newline at end of file diff --git a/docs/200.html b/docs/200.html index 22e7309..88572f3 100644 --- a/docs/200.html +++ b/docs/200.html @@ -1,9 +1,9 @@
-